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
<script type = "text/javascript" >
function disableBrowserBackButton() {
window.history.forward();
}
setTimeout("disableBrowserBackButton()", 0);
</script>
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" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>talkloud.de</title>
<script type = "text/javascript" >
function disableBrowserBackButton() {
window.history.forward();
}
setTimeout("disableBrowserBackButton()", 0);
</script>
<style type="text/css" media="screen">
@import url(css/style.css);
@import url("css/bishnu.css");
</style>
<script language="javascript" type="text/javascript" src="JS/jquery-1.3.2.min.js"></script>
<script language="javascript" type="text/javascript" src="JS/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" language ="javascript" src ="js/Validations.js"></script>
<asp:ContentPlaceHolder ID="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body onload="disableBrowserBackButton()">
<form id="form1" runat="server">
<div id="wrapper">
</div>
</form>
</body>
</html>