I already have an idea on how to do this, but I realized that the control \"ControlParameter\" did not have an \"Id\" property (which is needed for the JS). Is there a different
You can't access a ControlParameter
client side. ControlParameters
are used to bind the value of a Control property server side, they are not rendered to the client. You can, however, set the Default value of the ControlParameter
programmatically in your Code Behind.
SqlDataSource1.SelectParameters["id"].DefaultValue = "value";