ObjectDataSource选择参数
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ObjectDataSource选择参数相关的知识,希望对你有一定的参考价值。
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.
ObjectDataSource.SelectParameters(#).DefaultValue = value GridView.DataBind()
以上是关于ObjectDataSource选择参数的主要内容,如果未能解决你的问题,请参考以下文章
InvalidOperationException:ObjectDataSource 找不到具有参数的非泛型方法:
ObjectDataSource 'odsX' 找不到没有参数的非泛型方法 'methodX'
ObjectDataSource 未能找到带参数的非泛型方法