I have one grid view in my asp.net page, in that Item Template involves hyperlink. While clicking that hyper link need to raise serverside event to get the selected row value and pass it to next page. I referred many sites all are suggesting to use LinkButton but I need it in hyperlink only.
Can anyone help me ?


Khan Abrar AhmedRank #778 · 3K reputationPosted May 25, 2014, 9:42 PM EDT
if you want to use hayperlink then in the row data bound event of gridview you need to bind the href of hyperlink with full url.
Jayakumar BalasubramaniamRank #267 · 9.5K reputationPosted May 26, 2014, 9:36 PM EDT
Thanks for your kind response, I tried that way already my problem is while clicking the hyperlink in the gridview before page navigates I need to get the values in that row.
If there is any way suggest.
As like your solution only I have did now and assigned query string as unique ID for each row my problem gets solved.
Thanks.