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