Last post Aug 14, 2011 01:59 AM by rajdeep.in
Aug 13, 2011 03:01 PM|KevinGW|LINK
I want to change the Select Methon of the ObjectDataSource at runtime. For the default one I created with the wizard there are no paramaters. I want to use a select method that will have paramaters. I am using VB. How is this done?
Aug 14, 2011 01:59 AM|rajdeep.in|LINK
Hi Please try,
ObjectDataSource1.SelectMethod = "GetByCategoryID"
ObjectDataSource1.SelectParameters.Add("categoryID", TypeCode.Int32, catId)
Hope this helps.