How do you disable the Back Button?

B

bthumber

How do you disable the back button (upper left corner IE) in an application
or cause a redirect to the first page of the application. The point is I
don't want user to go back a page. I've tried putting

Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetExpires(DateTime.Now);
in the Page_Load of the page I don't want the user returning to.
 
Joined
Mar 4, 2009
Messages
17
Reaction score
0
YOOU CAN READ MY BELOW POST. HERE I TRIED TO WRITE CROSS-BROWSER SCRIPT TO PROTECT USER TO GO BACK:

shawpnendu.blogspot.com/2009/04/cross-browser-javascript-to-disable.html

HOPE IT WILL HELP YOU A LOT.

REGARDS
shawpnendu.blogspot.com
 
E

Eliyahu Goldin

Googling on "disable back button" will return plenty of links explaining the
issues.


--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin


bthumber said:
How do you disable the back button (upper left corner IE) in an
application
or cause a redirect to the first page of the application. The point is I
don't want user to go back a page. I've tried putting

Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetExpires(DateTime.Now);
in the Page_Load of the page I don't want the user returning to.


__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4074 (20090514) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


__________ Information from ESET NOD32 Antivirus, version of virus signature database 4075 (20090514) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top