Author: ssnaik84 | Posted on: 3/11/2009 10:17:31 PM | Views : 278

 Hi,
I need to disable button clicks, on Internet Explorer.
1. Back button - (Backspace button)
2. Refresh button - (F5 button)
 
after googling a lot, for back button,  i found the best solution is..
   <script type="text/javascript">
    function noBack(){window.history.forward();}
    noBack();
    window.onload=noBack;
    window.onpageshow=function(evt){if(evt.persisted)noBack();}
    window.onunload=function(){void(0);}
    </script>
i tried with fail, following code..
Response.Cache.SetNoStore();
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetExpires(DateTime.Now.AddDays(-1));
Response.Cache.SetAllowResponseInBrowserHistory(false);
Response.ExpiresAbsolute = DateTime.Now.AddDays(-1);
Response.CacheControl = &quo ...

Go to the complete details ...