disbale back button

mv ark replied to Arjun Priyananth at 03-Jul-08 04:06
These 2 are the most authoritative articles on this topic -
http://www.4guysfromrolla.com/webtech/111500-1.shtml
http://forums.asp.net/t/989339.aspx

There is no perfect solution & these 2  options work fine for most as long as Javascript is not disabled -
<script language="JavaScript">
<!--
javascript:window.history.forward(1);
//-->
</script>



<A HREF="PageName.htm"
onclick="javascript:location.replace(this.href);
event.returnValue=false; ">No back button when you do
this.</A>


Biography
M.V. 'Anil' Radhakrishna is a seasoned developer and a Microsoft MVP (ASP/ASP.NET). He blogs his little discoveries and Web development tips, tricks and trivia quite regularly. You can find some of his unusual code samples & snippets at his Code Gallery.

Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  Browser Back Button in asp.net - Arjun Priyananth  03-Jul-08 03:42 3:42:39 AM
      place html button - Deepak Ghule  03-Jul-08 03:49 3:49:50 AM
      Hi - Try this - santhosh kumar  03-Jul-08 03:51 3:51:31 AM
      Back Button - JavaScript - kalit sikka  03-Jul-08 03:55 3:55:39 AM
      disbale back button - mv ark  03-Jul-08 04:06 4:06:31 AM
      See this - Sujit Patil  03-Jul-08 04:24 4:24:00 AM
          sol to diable back button - Umapathy Kaliaperumal  03-Jul-08 04:37 4:37:47 AM
      Simply disable back button - Sanjay Verma  04-Jul-08 06:21 6:21:14 AM
View Posts