ObjectDataSource SelectParameters

/ Published in: VB.NET
Save to your folder(s)

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.

Copy this code and paste it in your HTML
  1. ObjectDataSource.SelectParameters(#).DefaultValue = value
  2. GridView.DataBind()

URL: http://codefinds.blogspot.com/2007/11/objectdatasource-selectparameters.html

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.