Gridview row index of HyperLink field - how to?

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
 
J

Jayakrishnan

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

Jay..
 
G

Guest

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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top