I want to pass variable from the code behind to the SelectCommand of a SqlDataSource?
I don\'t want to use built-in parameter types (like ControlParameter, QueryStri
Just add a custom property to the page which will return the variable of your choice. You can then use the built-in "control" parameter type.
In the code behind, add:
Dim MyVariable as Long
ReadOnly Property MyCustomProperty As Long
Get
Return MyVariable
End Get
End Property
In the select parameters section add: