Groups | Blog | Home
all groups > asp.net > july 2003 >

asp.net : Hyperlinks and viewstate



John
7/5/2003 11:26:36 PM
Hi all,

My app contains a datagrid with hyperlinks inside and these hyperlinks all
point back to the same page. The problem is that I have a 'search' user
control and the viewstate changes once the hyperlink has been clicked,
causing the Page_Load event of my user control to fire (which is what I
don't want). Is there any way to structure the hyperlink such that the
viewstate of my other user controls on the page do not change? If so, how do
I do this? If not, what other method could I use?

Regards
John.

David Waz...
7/5/2003 11:56:44 PM
Page_Load ALWAYS fires, reglardless of how you get to a page, user control
or custom control.

If you use an ASP:LinkButton control instead of an html hyperlink, I think
your problems may be fixed...


[quoted text, click to view]

AddThis Social Bookmark Button