Web Controls and the Back button

  • Thread starter Thread starter Jeremy
  • Start date Start date
J

Jeremy

A web control event is executed on the server and the form is posted back to
the browser, thus automatically adding the previous state of the page
(before the web control event is fired) to the browser's history. Is there
any way to prevent this ?
 
Are you trying to prevent you page from being cached by the browser?
For example, if the user hit the "Back" button after a postback, you
want the browser to return a "Page has been expired" message?

Tommy,
 
I'm trying to prevent a page update being cached, so if a user hits a link
on page A and enters my webform page B, hits a few buttons (each of which
posts back), and then hits Back, he is taken back to the page A.
 
The answer, as I found out much later, is to turn on Smart Navigation in
form B
 

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

Back
Top