开发者

How to show a particular record in DetailsView?

I have a DetailsView control which is bind to a ObjectDataSource. In my application there is a TextBox, user enter ID in this textbox and clicks SHOW RECORD button, now DetailsView should show that record.

I am not able to show that record in DetailV开发者_JAVA百科iew.

Please Help.


Maybe something like this?

_dataSet.Filter = String.Format("id = {0}", _textBox.Text);
_detailsView.DataSource = _dataSet;
_detailsView.DataBind();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜