How do you disable the Back Button?

  • Thread starter Thread starter bthumber
  • Start date Start date
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.
 
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
 
Back
Top