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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top