Re: [DotNetDevelopment] Disable back button in browser

2009-11-30 Thread Raghupathi Kamuni
Method 1) Client Side Javascript function disableBackButton() { window.history.forward(); } setTimeout("disableBackButton()", 0); call disableBackButton() onload of the page Method 2) Codebehind = Override OnPreRender and register the above script Meth

Re: [DotNetDevelopment] Disable back button in browser

2009-11-30 Thread Jamie Fraser
Yeah, the best solution is don't try and disable the back button. It is defined behaviour which shouldn't be tampered with. On Fri, Nov 27, 2009 at 11:28 AM, pallavi kondapure < pals.kondap...@gmail.com> wrote: > Thanks for the info.. > Could you please suggest the solution for this > > Regar

Re: [DotNetDevelopment] Disable back button in browser

2009-11-28 Thread pallavi kondapure
Thanks for the info.. Could you please suggest the solution for this Regards On Tue, Nov 24, 2009 at 6:16 PM, Raghupathi Kamuni wrote: > Browser "Back Button" is not meant to go forward... > > > On Tue, Nov 24, 2009 at 2:05 PM, pallavi kondapure < > pals.kondap...@gmail.com> wrote: > >>

Re: [DotNetDevelopment] Disable back button in browser

2009-11-24 Thread Raghupathi Kamuni
Browser "Back Button" is not meant to go forward... On Tue, Nov 24, 2009 at 2:05 PM, pallavi kondapure wrote: > > Hi All, > > I have a web page ,basically content page that is using AJAX controls(in > .Net 3.5) ,Now my requirement is to disable back button in the browser .I > have put > > w

[DotNetDevelopment] Disable back button in browser

2009-11-24 Thread pallavi kondapure
Hi All, I have a web page ,basically content page that is using AJAX controls(in .Net 3.5) ,Now my requirement is to disable back button in the browser .I have put window.history.forward(); I am calling this code on onload in javascript window .onload This code works the first time the page is