Click here to Skip to main content
15,911,531 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai,
I assign hyperlink dynamically in grid view.In the grid view how to find the selected link.
Posted

1 solution

Hi,
I presume you have a HyperLink tag like this(I do not know your method of dynamically setting it):
ASP.NET
<asp:hyperlinkfield datatextfield="LeadID" datanavigateurlfields="LeadID" datanavigateurlformatstring="CurrentPage.aspx?LeadID={0}" ...  />


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.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900