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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP

Status
Not open for further replies.

lavanya

Programmer
Oct 25, 2001
1
GB
HOW DO I DISABLE THE 'BACK' BUTTON IN THE BROWSER,USING ASP?
 
Hi LAVANYA,

I read this article couple month ago, prehaps, you can find something useful, they use ASP session and html reload technique to rewrite the back button. However, the problem of this is the client needs to have cookies enabled on their browser, because ASP Session Variables are cookie-based.

For ASP, you can also use the Redirect method to force the page not going backward. Let's say you have 2 pages step1.asp and step2.asp and you don't want the user use back button to go back to step1 while they are in step2. Simply, insert a asp page called "step1to2.asp", so you have (step1.asp -> step1to2.asp -> step2.asp). In step1to2.asp, you call the Response.Redirect("step2.asp"), so if the user hit the back button in step2.asp, it go to step1to2.asp but it will redirect the page to step2.asp immediately.

hope this helps,

Chiu Chan
cchan@gefmus.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top