Pages

Monday, April 11, 2011

How to disable browser back button in asp.net with javascript?

Here i am showing how to disable browser back button . Just put this java script on the aspx page within the head section. Here i put this on my master page


On the Body tage put this onload="disableBrowserBackButton()"
e.g
<%@ Master Language="VB" AutoEventWireup="false" CodeBehind="Main.master.vb" Inherits="talklouds.Main" %>
<%@ Register src="UserControl/MainHeader.ascx" tagname="MainHeader" tagprefix="uc1" %>
<%@ Register src="UserControl/Mainfooter.ascx" tagname="Mainfooter" tagprefix="uc2" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>




talkloud.de














No comments:

Post a Comment