开发者

How to show a particular record in DetailsView?

开发者 https://www.devze.com 2023-04-13 08:06 出处:网络
I have a DetailsView control which is bind to a ObjectDataSource. In my application there is aTextBox, user enter ID in this textbox and clicks SHOW RECORD button, now DetailsView should show that rec

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

精彩评论

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