How prevent users from using BACK button in ASP.net?

C

COHENMARVIN

I'm writing a database application in asp.net, and I'm worried that the
users will sometimes click the BACK button in their browser, thus
making some pages re-execute, and possibly messing up the databases.
How can this be prevented? Can I prevent prior pages from being cached
by the browser, so that the user has to click on REFRESH to see the
page again? If I can do that, I would force the prior page to
re-execute, and maybe that would be good because I could test for some
session variable that holds the most recent page seen. This might tell
the page whether it is being reached by the Back button or not. So
basically I have 2 questions, how to prevent browser caching, and how
to prevent the BACK button from causing trouble.
Thanks,
CohenMarvin
 
C

Curt_C [MVP]

basically I have 2 questions, how to prevent browser caching, and how
what have you tried do far? There are differnet setting to expire the
page, etc...have you tried any of them so far?
to prevent the BACK button from causing trouble.
You dont... you adjust accordingly.
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top