Gridview row index of HyperLink field - how to?

  • Thread starter Thread starter Bogdan
  • Start date Start date
B

Bogdan

Hi,

I have a GridView HyperLink field with NavigateUrl. I'd like to save the
clicked on link's row index before navigating to 'NavigateUrl'. Does
clicking on the field fire any events that I can handle on the server side?
I'm using asp.net 2.0.

Thanks
 
You could code it in page load event using querystring to differentiate
the event.

Jay..
 
Hi,

I have a GridView HyperLink field with NavigateUrl.  I'd like to save the
clicked on link's row index before navigating to 'NavigateUrl'.  Does
clicking on the field fire any events that I can handle on the server side?
I'm using asp.net 2.0.

Thanks

No, it doesn't. You can replace HyperLink by CommandField, in this
case clicking on that field would fire a postback where you can get
the index. You can also use a "log"-page which can track all clicks,
for example, "log.aspx?url=http://msn.com&id=29"
 
Back
Top