how to add a controlparameter programmatically?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Cas

    #1

    how to add a controlparameter programmatically?

    Hi,

    How to add a controlparamete r in the code-behind that is the equivalent in
    the aspx file of:
    <UpdateParamete rs>
    <asp:ControlPar ameter ControlID="myID " Name="myname"
    PropertyName="S electedValue" Type="String" />
    </UpdateParameter s>

    Thanks
    Cas


  • Cas

    #2
    Re: how to add a controlparamete r programmaticall y?

    I found it ...

    Dim a As New ControlParamete r
    a.ControlID = "Dropdownli st1"
    a.Type = TypeCode.String
    a.PropertyName = "SelectedVa lue"



    "Cas" <s@sschreef in bericht news:etKOKMKxGH A.2184@TK2MSFTN GP05.phx.gbl...
    Hi,
    >
    How to add a controlparamete r in the code-behind that is the equivalent
    in the aspx file of:
    <UpdateParamete rs>
    <asp:ControlPar ameter ControlID="myID " Name="myname"
    PropertyName="S electedValue" Type="String" />
    </UpdateParameter s>
    >
    Thanks
    Cas
    >
    >

    Comment

    Working...