0

hi i am trying to clear session varibles its working fine but the problem is when i click back button in browser it is redireding to previous page here i want to do redirect to specied page pls helep me its urgent thanks in advance

4
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by raju.manick
0

Not sure what you're asking, but if you're referring to the browser's back button in the toolbar, I don't think you can influence that. Try putting code into the body of your page:

<a href="pageIwantYouToGoTo.aspx">Back ></a>

Edited by webmaven: n/a

0

Let you have two pages named A and B. When user in B then you do not want to go back to page A. Then write the below code in page A.

<head runat="server"><title>login page</title>
<script type="text/javascript">
setTimeout("window.history.forward(1)", 0);
window.onunload=function{return false;}
</script>
</head >
0

This ill help u..

logout button ->Redirect to logout.aspx


<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>Untitled Page</title>
<script type = "text/javascript" >
function disableBackButton()
{
window.history.forward();
window.location='Index.aspx';
}
setTimeout("disableBackButton()", 0);
</script>
</head>
<body onload="disableBackButton()">

<form id="form1" runat="server">

</form>
</body>
</html>

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.