在GridView中找到选定的行

问题描述:

海,
我在网格视图中动态分配超链接.在网格视图中如何找到选定的链接.

Hai,
I assign hyperlink dynamically in grid view.In the grid view how to find the selected link.


我想您有一个这样的HyperLink标记(我不知道您动态设置它的方法):
Hi,
I presume you have a HyperLink tag like this(I do not know your method of dynamically setting it):
<asp:hyperlinkfield datatextfield="LeadID" datanavigateurlfields="LeadID" datanavigateurlformatstring="CurrentPage.aspx?LeadID={0}" ...  />



当您单击特定的HyperLink时,将显示当前页面.您可以使用Request.QueryString拥有特定的键.

希望对您有所帮助,
干杯.



When you click on a particular HyperLink the current page will be displayed. You can use Request.QueryString to have the particular key.

I hope it will help,
Cheers.