Viewstate Problem! HELP!

  • Thread starter Thread starter Chad A. Beckner
  • Start date Start date
C

Chad A. Beckner

Hey all,

I have a page that posts back to itself and displays a different "panel"
depending on where they are in the "application". The problem is that when
I click the back button, the page "contents" does not change, it stays on
the page that is currently visible. How can I fix this?!!?

Thanks in advance!

Chad
 
Hi,


Page can be cached on network and on your local machine. you need to
disable chaching so back button will cause page refrese :

for network cache :
Response.Cache.SetCacheability(HttpCacheability.NoCache);

for browser cache :
Response.ExpiresAbsolute = -1;

HTH


Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)52-8888377


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Don't make a postback funtion, but a response write to the same page
with some important variables. Thes the back button will work
 
Back
Top