Browser back button..
-
hi friends.. i used the following code to disable the browser back button. but its not working, until i clicked any button. Code i used : Response.Cache.SetCacheability(HttpCacheability.NoCache) Response.Cache.SetExpires(DateTime.Now.AddDays(-1)) Response.Cache.SetAllowResponseInBrowserHistory(False) Thanks in advance.. cheers..
-
hi friends.. i used the following code to disable the browser back button. but its not working, until i clicked any button. Code i used : Response.Cache.SetCacheability(HttpCacheability.NoCache) Response.Cache.SetExpires(DateTime.Now.AddDays(-1)) Response.Cache.SetAllowResponseInBrowserHistory(False) Thanks in advance.. cheers..
This won't kill the back button, it will just force the page to reload when you go back.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )