views:

29

answers:

2

Possible Duplicate:
Disabling Back button on the browser

How to do this in asp.net friends?

A: 

You cannot disable the back button in a browser without using javascript, and even then javascript could be turned off on clients machine

http://forums.asp.net/t/989339.aspx

Longball27
+1  A: 

If I'm a (prospective) customer of your company and you try to take away functionality of my browser, I will get angry at you and your company. You don't want that to happen.

If your user's logged out and uses the back button to go to a stale URL, detect this (it's simple enough!) and show him a page telling him there's nothing to see there. Better yet, take him to your app's home page or something.

Carl Smotricz