tag:blogger.com,1999:blog-7805972021499203804.post696673826342448758..comments2023-10-30T06:24:14.411-07:00Comments on ASP.NET,C#.NET,VB.NET,JQuery,JavaScript,Gridview: Disable browser back button functionality using JavaScript in asp.net | ASP.Net disable browser back button (using javascript)Suresh Dasarihttp://www.blogger.com/profile/01337689983379917267noreply@blogger.comBlogger48125tag:blogger.com,1999:blog-7805972021499203804.post-41881606544765025212017-09-14T17:23:05.765-07:002017-09-14T17:23:05.765-07:00thanks so much it worksthanks so much it worksP.anil kumarhttps://www.blogger.com/profile/04555895693385304161noreply@blogger.comtag:blogger.com,1999:blog-7805972021499203804.post-90094111153519135262017-08-10T22:38:28.497-07:002017-08-10T22:38:28.497-07:00Thank you it works well,but it shows a glimpse of ...Thank you it works well,but it shows a glimpse of the the previous page when back button is pressed.<br /><br />Can anyone suggest a way to prevent the above mentioned scenario??Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7805972021499203804.post-79569394439377835692017-06-28T08:51:44.148-07:002017-06-28T08:51:44.148-07:00Hello Sir,
DisableBackButton function is not worki...Hello Sir,<br />DisableBackButton function is not working for me,I have 3 files login.html,profile.php,logout.php and even login.php also present so I want to prevent users from coming back after logout to there profile page.r <br /><br />I have blindly copied your code between head tag of the login.html and profile.php,but no result.<br /><br />PLease help me out<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7805972021499203804.post-32509928198672405192016-12-26T15:46:30.410-08:002016-12-26T15:46:30.410-08:00thanx a lot the code work for me thanx a lot the code work for me Anonymoushttps://www.blogger.com/profile/11334201593367100455noreply@blogger.comtag:blogger.com,1999:blog-7805972021499203804.post-91039303840829088292016-02-02T02:13:01.161-08:002016-02-02T02:13:01.161-08:00ThanxThanxDSShttps://www.blogger.com/profile/15329592633539616067noreply@blogger.comtag:blogger.com,1999:blog-7805972021499203804.post-41697905286785685012015-12-15T01:41:47.247-08:002015-12-15T01:41:47.247-08:00It is not working...It is not working...Anonymoushttps://www.blogger.com/profile/13408171699087718867noreply@blogger.comtag:blogger.com,1999:blog-7805972021499203804.post-9355591135323860772015-10-19T03:21:48.618-07:002015-10-19T03:21:48.618-07:00great....
great....<br />S. Muruganhttps://www.blogger.com/profile/10764491932879928995noreply@blogger.comtag:blogger.com,1999:blog-7805972021499203804.post-44688280347755470842015-07-26T23:06:22.683-07:002015-07-26T23:06:22.683-07:00Thank You suresh.Your trick worked in my web appli...Thank You suresh.Your trick worked in my web application.your articles always help me a lot.keep it upAnonymoushttps://www.blogger.com/profile/04985395407305408489noreply@blogger.comtag:blogger.com,1999:blog-7805972021499203804.post-21675941239594462982015-04-15T07:38:10.471-07:002015-04-15T07:38:10.471-07:00but if you click on the refresh button (from the p...but if you click on the refresh button (from the page which shows in the sample image), it will reload the contents again.<br />Im looking for something like this but it shouldnt be able to refresh / or get error message (or go to the login page) when you refresh the browser from the page where the back button took youAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-7805972021499203804.post-4743638296803195632015-03-31T00:09:32.690-07:002015-03-31T00:09:32.690-07:00Thank you sir ,This code worked like a charm..Thank you sir ,This code worked like a charm..Prashanthnoreply@blogger.comtag:blogger.com,1999:blog-7805972021499203804.post-24012642818850490742014-09-10T03:25:45.620-07:002014-09-10T03:25:45.620-07:00onpageshow never fires when click back button, win...onpageshow never fires when click back button, windows 8.1 ie11.Anonymoushttps://www.blogger.com/profile/14597148785998239538noreply@blogger.comtag:blogger.com,1999:blog-7805972021499203804.post-58095037335875814902014-09-03T19:53:45.211-07:002014-09-03T19:53:45.211-07:00This code is not working in IE8This code is not working in IE8Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7805972021499203804.post-57364917303617919392014-05-06T02:57:15.874-07:002014-05-06T02:57:15.874-07:00while clicking the back button it is showing the p...while clicking the back button it is showing the previous page for micro second...is it possible to remove it so it doesnt show the previous page and only stays on the current page only....????Anonymoushttps://www.blogger.com/profile/07487577615980037307noreply@blogger.comtag:blogger.com,1999:blog-7805972021499203804.post-57966370069041007672014-04-18T05:33:10.494-07:002014-04-18T05:33:10.494-07:00to disable back action...just put the following sc...to disable back action...just put the following script inside head in master page or all page.<br /><br />.......<..head..><br /><..style><br /> <..script type="text/javascript"><br /> history.forward(); <br /><../script><br /><../head..>...........Anonymoushttps://www.blogger.com/profile/18115036951584479033noreply@blogger.comtag:blogger.com,1999:blog-7805972021499203804.post-22007394410564018552014-04-18T05:25:18.605-07:002014-04-18T05:25:18.605-07:00i want to delete browser history when page load......i want to delete browser history when page load...Anonymoushttps://www.blogger.com/profile/18115036951584479033noreply@blogger.comtag:blogger.com,1999:blog-7805972021499203804.post-48920917865176150092014-04-17T05:16:52.658-07:002014-04-17T05:16:52.658-07:00Hi,
This concept is working for me. But i face one...Hi,<br />This concept is working for me. But i face one problem.i want to restrict with out clearing my entered data.for example i entered some thing in my page controls than those controls cleared.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7805972021499203804.post-16331196289484207712014-03-26T23:35:57.957-07:002014-03-26T23:35:57.957-07:00hi.myself sandhya ...thank you this post was helpf...hi.myself sandhya ...thank you this post was helpful to me.....<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7805972021499203804.post-9939287308805376802014-03-26T23:33:40.190-07:002014-03-26T23:33:40.190-07:00thanksthanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-7805972021499203804.post-37510510537133017032014-01-03T10:15:58.338-08:002014-01-03T10:15:58.338-08:00hii Suresh... I just want the same functionality l...hii Suresh... I just want the same functionality like Facebook has.... <br />As in Facebook... whenever we logged in successfully, then we entered in home page....<br />And now click on the back button of the browser and still we are stay on the home page it self.... without going to the login page of the Facebook.<br /><br />Please help me asap.<br />my email ID is: pranavpatel1991@gmail.compranavhttps://www.blogger.com/profile/08973792029657396908noreply@blogger.comtag:blogger.com,1999:blog-7805972021499203804.post-79095354034730265802013-12-07T03:11:51.291-08:002013-12-07T03:11:51.291-08:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/04783021554264128307noreply@blogger.comtag:blogger.com,1999:blog-7805972021499203804.post-80245838936258162672013-11-20T11:27:45.812-08:002013-11-20T11:27:45.812-08:00thanx a lot suresh
this code worked very well in ...thanx a lot suresh <br />this code worked very well in my project<br />thank u very much...........Mayur Agarwalnoreply@blogger.comtag:blogger.com,1999:blog-7805972021499203804.post-55024378944233570862013-08-16T03:24:10.431-07:002013-08-16T03:24:10.431-07:00hello sir nice code u have posting ,
but i have on...hello sir nice code u have posting ,<br />but i have one another problem i am working in asp.net 4.0 when user can login then he redirect to the inner page but when he click on logout button then he back to home page its fine and this code is work for back button but if user copy the inner page link and then logout he past that link so he again redirect to the inner page ,,,<br />plz solve my Anonymoushttps://www.blogger.com/profile/11545518993308064820noreply@blogger.comtag:blogger.com,1999:blog-7805972021499203804.post-14203590457349143722013-06-19T00:02:31.900-07:002013-06-19T00:02:31.900-07:00i used the code but its not working. I place JavaS...i used the code but its not working. I place JavaScript code in login page of content placeholder.Please help me..amazinghttps://www.blogger.com/profile/05405217222128501851noreply@blogger.comtag:blogger.com,1999:blog-7805972021499203804.post-16964986949685003582013-06-18T23:58:03.460-07:002013-06-18T23:58:03.460-07:00This comment has been removed by the author.amazinghttps://www.blogger.com/profile/05405217222128501851noreply@blogger.comtag:blogger.com,1999:blog-7805972021499203804.post-33878263028207712402013-05-25T01:21:13.417-07:002013-05-25T01:21:13.417-07:00Thanks your great post, my brother!Thanks your great post, my brother!Allenhttp://www.birkinhandbagoutlet.comnoreply@blogger.com