如何在超链接上传递gridview行数据点击另一页面上的文本框..? [英] How to pass gridview row data on hyperlink click to textboxes on another page ..?
本文介绍了如何在超链接上传递gridview行数据点击另一页面上的文本框..?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有两页。第一页有一个gridview,另一页有一个带有标签和文本框的表单。我在gridview的每一行都有一个编辑超链接。点击特定的行,我想在查询字符串中传递id,并以相应的值显示这些表格中的所有数据。怎么做..?
i have two pages . First page have a gridview and another page have a form with labels and textboxes. i have an edit hyperlink on each row of gridview .On click on particular row i want to pass id in querystring and display all data in those form with respectives values. how to do it ..?
推荐答案
请查看此链接..
http:// www.dotnetbull.com/2013/05/how-to-handle-click-event-of-linkbutton.html
之后你可以将这些值传递给另一个使用查询字符串的页面。
please check this link..
http://www.dotnetbull.com/2013/05/how-to-handle-click-event-of-linkbutton.html
after that u can pass those values to another page using query string.
向gridview添加超链接字段
Add hyperlink field to gridview
<asp:hyperlinkfield datanavigateurlfields="ID"
DataNavigateUrlFormatString="ScondPage.aspx?ID={0}"
Text="Edit" /></asp:hyperlinkfield>
这篇关于如何在超链接上传递gridview行数据点击另一页面上的文本框..?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文