Hyperlinks and viewstate

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.
 
D

David Waz...

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

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

Similar Threads


Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top