Click here to Skip to main content
16,011,974 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Handling browser Close (X) button Pin
K V Sekhar4-Sep-08 23:44
K V Sekhar4-Sep-08 23:44 
GeneralRe: Handling browser Close (X) button Pin
K V Sekhar5-Sep-08 1:01
K V Sekhar5-Sep-08 1:01 
GeneralRe: Handling browser Close (X) button Pin
Abhijit Jana5-Sep-08 1:21
professionalAbhijit Jana5-Sep-08 1:21 
GeneralRe: Handling browser Close (X) button Pin
K V Sekhar5-Sep-08 2:34
K V Sekhar5-Sep-08 2:34 
GeneralRe: Handling browser Close (X) button Pin
Abhijit Jana5-Sep-08 3:46
professionalAbhijit Jana5-Sep-08 3:46 
GeneralRe: Handling browser Close (X) button Pin
K V Sekhar5-Sep-08 18:43
K V Sekhar5-Sep-08 18:43 
GeneralRe: Handling browser Close (X) button Pin
K V Sekhar5-Sep-08 20:03
K V Sekhar5-Sep-08 20:03 
QuestionHandling browser <- button Pin
K V Sekhar4-Sep-08 20:51
K V Sekhar4-Sep-08 20:51 
Hi all,

I wants not allow user to revisit the previous pages once he logged out.
I am using master page, in that i placed a logout linkbutton.

When user clicks on logout button, i am redirecting user to loginpage.aspx.

In the Design of loginpage.aspx i wrote the following javascript to prevent user to navigate through browser -> & <- buttons.

LoginPage.aspx:
<%@ Page Language="C#" MasterPageFile="~/ProxyAds.master" AutoEventWireup="true"
CodeFile="LoginPage.aspx.cs" Inherits="LoginPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Main" runat="server">
<script language="javascript" type= "text/javascript">

if (window.history) {
window.history.forward(1);
}
</script>
<div id="home">
//Login Controls here....
</div>
</asp:Content>
.........................

But its not working.
any thing i am doing wrong ?
please suggest me.

thanks in advance.
AnswerRe: Handling browser &lt;- button Pin
Blue_Boy4-Sep-08 21:00
Blue_Boy4-Sep-08 21:00 
GeneralRe: Handling browser &lt;- button [modified] Pin
K V Sekhar4-Sep-08 21:11
K V Sekhar4-Sep-08 21:11 
QuestionException Pin
trilokharry4-Sep-08 20:31
trilokharry4-Sep-08 20:31 
AnswerRe: Exception Pin
Blue_Boy4-Sep-08 20:41
Blue_Boy4-Sep-08 20:41 
QuestionHttp Response and Javascript Problem Pin
goradaranaresh4-Sep-08 20:30
goradaranaresh4-Sep-08 20:30 
QuestionException issue in grid view Pin
trilokharry4-Sep-08 19:43
trilokharry4-Sep-08 19:43 
Questionvalidation Pin
nithydurai4-Sep-08 19:23
nithydurai4-Sep-08 19:23 
QuestionPublish in .Net Pin
Member 45999724-Sep-08 19:22
Member 45999724-Sep-08 19:22 
AnswerRe: Publish in .Net Pin
Abhijit Jana4-Sep-08 19:41
professionalAbhijit Jana4-Sep-08 19:41 
GeneralRe: Publish in .Net Pin
Member 45999724-Sep-08 19:47
Member 45999724-Sep-08 19:47 
QuestionRe: Publish in .Net Pin
Abhijit Jana4-Sep-08 20:13
professionalAbhijit Jana4-Sep-08 20:13 
AnswerRe: Publish in .Net Pin
Member 45999724-Sep-08 20:18
Member 45999724-Sep-08 20:18 
GeneralRe: Publish in .Net Pin
www.Developerof.NET4-Sep-08 20:36
www.Developerof.NET4-Sep-08 20:36 
GeneralRe: Publish in .Net Pin
Abhijit Jana4-Sep-08 20:49
professionalAbhijit Jana4-Sep-08 20:49 
GeneralRe: Publish in .Net Pin
Member 45999724-Sep-08 23:53
Member 45999724-Sep-08 23:53 
GeneralRe: Publish in .Net Pin
www.Developerof.NET5-Sep-08 4:31
www.Developerof.NET5-Sep-08 4:31 
AnswerRe: Publish in .Net Pin
Abhijit Jana5-Sep-08 2:22
professionalAbhijit Jana5-Sep-08 2:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.