Hi,
After user has logged out i am redirecting user to home.aspx and from here i do not want user to be able to go back using browser back button.. How can i do it? I used this code in javascript : <script type="text/javascript"> javascript:window.history.forward(1); </script> This does not work for me. In all pages i am using Master Pages.. Thanks for the help in advance
Put it in the content placeholder of the page and not master page
If you have 2 pages pageA and pageB and user goes from pageA -> pageB and you want to stop him from coming back to pageA put the script in content place holder of pageA
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.