Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

How should I disable browser back button while handling security data in application.
and display Error message like

This webpage requires data that you entered earlier in order to be properly displayed. You can send this data again, but by doing so you will repeat any action this page previously performed.
Reload this webpage
Press the reload button to resubmit the data needed to load the page.

Iam using .NET 4.0 using C#.

thanks in advance
Posted
Comments
F-ES Sitecore 16-Jul-15 8:30am    
You can't disable the back button. Instead you should fix your site so it doesn't break if the user does go back. Or, failing that, put a message on the screen telling them not to go back, but obviously you can't stop them but when dealing with matters on forms people tend to obey these messages. I know when a payment page tells me not to refresh or go back I'm sure to do neither of those things as I know their bad coding will probably result in a double payment.

1 solution

There are several solutions offered in this post[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900