This is an archived thread from the StopByte developer forum —
browse all archived threads.
StopByte is now a payments & ecommerce toolkit — check out our
free calculators.
How can i disable the browser’s Back button functionality when user visits a specific ASP.NET page, thus preventing the user to go back to the precedent pages.
By the way; i tried setting session["session-id"] to null but it didn’t work at all, the button is not disabled.
I need both the Back Button and the “Backspace” Keyboard button disable, (i.e. the Entire back functionality should be disabled).
thanks for assistance.
Arrowsoft.it
(Arrowsoft.IT Srls)
#2
Hi IT_Soft,
you have to use push and pop from history object state.
In this manner you can avoid browser history navigation by defining yourself the behavior for the next and previous button. Be carefull: refresh button is not programmable