Friday, July 31, 2009

How to disable the Back and Refresh buttons of the browser in an ASP web application?

I basically want the users not to use browser's back button by either disabling it or by giving a message

How to disable the Back and Refresh buttons of the browser in an ASP web application?
This was asked in an earlier question. But the basic answer is, you can't (and you definitely can't do it with a server side script like ASP). Even if you could, you still have other ways that the user can navigate back into the middle of a session. There are the forward/back options in the context menu (right click on a page), there is the browswer history, the user can simply enter an explicit url.





So bottom line is you can't do it and even if you could you need to make your web app robust enough to handle users plopping themselves in the middle of defunct sessions and/or repeating actions.
Reply:I remember seeing this in a yahoo group but can't remember what answer was,


I did quick google with question looks like some answers are there


No comments:

Post a Comment