/ Published in: VB.NET

If you have a component being bound from an ObjectDataSource (like a drop-down menu, or a grid view) and you wish to change the value's SelectParameters. Where # is which SelectParameter you'd like to change. If there's just one SelectParamter, default is 0. Then reference your object that uses that datasource, in this case a GridView, to rebind.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
ObjectDataSource.SelectParameters(#).DefaultValue = value GridView.DataBind()
URL: http://codefinds.blogspot.com/2007/11/objectdatasource-selectparameters.html
Comments
