how to add a controlparameter programmatically?

  • Thread starter Thread starter Cas
  • Start date Start date
C

Cas

Hi,

How to add a controlparameter in the code-behind that is the equivalent in
the aspx file of:
<UpdateParameters>
<asp:ControlParameter ControlID="myID" Name="myname"
PropertyName="SelectedValue" Type="String" />
</UpdateParameters>

Thanks
Cas
 
I found it ...

Dim a As New ControlParameter
a.ControlID = "Dropdownlist1"
a.Type = TypeCode.String
a.PropertyName = "SelectedValue"
 
Back
Top