Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shopping Cart & Back Button

Status
Not open for further replies.

other3

Programmer
Jul 30, 2002
92
US
I have been working on a page that checks a Date time set in ViewState and in a Session State. The Page_Load calles a routine that checks these times to determine if the page is expired.

In debug mode when I click the browers IE 6's back button,
the break in the Page_Load sub is not even hit.

Any suggestions?


Everything I know I learned from The Grateful Dead and Buffy The Vampire Slayer
Charlie
 
when you hit BACK you are looking at a cached verison of the page. Page-Load will not be executed.
 
Hitting "back" doesn't reload the page. Either set the page to no-cache through the appropriate meta-tags, or rely on your server-side validation/integrity checks in case the user submits the same form "twice".

Thomas D. Greer
 
Thank you all for your response. I had figured out the answer shortly after posting the question buy following the debug.

It was then that I found out that the ViewState does not change but that the Session state does change.

Everything I know I learned from The Grateful Dead and Buffy The Vampire Slayer
Charlie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top