ASP.NET - disable back button of browser - Asked By Neethu on 13-Jul-12 12:12 AM

hi all

how to disable back button of browser only in login page in asp.net application.
DL M replied to Neethu on 13-Jul-12 07:12 AM
Use below code sample

protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);
string strDisAbleBackButton;
strDisAbleBackButton = "<script language="javascript">\n";
strDisAbleBackButton += "window.history.forward(1);\n";
strDisAbleBackButton += "\n</script>";
ClientScript.RegisterClientScriptBlock(this.Page.GetType(), "clientScript", strDisAbleBackButton);
} 

Read more option:- http://lennilobel.wordpress.com/2009/07/26/defeat-the-evil-back-button-in-your-asp-net-applications/
Jitendra Faye replied to Neethu on 13-Jul-12 08:49 AM
refer my article this post-

http://steptodotnet.blogspot.in/2012/07/how-to-disable-back-button-of-browser.html