Hyperlinks and viewstate

  • Thread starter Thread starter John
  • Start date Start date
J

John

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.
 
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...
 
Back
Top