Click here to Skip to main content
15,889,808 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: On Click of Logout i want to prevent the user from clicking the back button and viewing the data Pin
Christian Graus11-May-08 19:57
protectorChristian Graus11-May-08 19:57 
GeneralRe: On Click of Logout i want to prevent the user from clicking the back button and viewing the data Pin
Krazy Programmer11-May-08 19:59
Krazy Programmer11-May-08 19:59 
GeneralRe: On Click of Logout i want to prevent the user from clicking the back button and viewing the data Pin
Christian Graus11-May-08 20:55
protectorChristian Graus11-May-08 20:55 
QuestionRe: On Click of Logout i want to prevent the user from clicking the back button and viewing the data Pin
shraddha190411-May-08 20:10
shraddha190411-May-08 20:10 
AnswerRe: On Click of Logout i want to prevent the user from clicking the back button and viewing the data Pin
Krazy Programmer11-May-08 20:13
Krazy Programmer11-May-08 20:13 
GeneralRe: On Click of Logout i want to prevent the user from clicking the back button and viewing the data Pin
shraddha190411-May-08 20:42
shraddha190411-May-08 20:42 
AnswerRe: On Click of Logout i want to prevent the user from clicking the back button and viewing the data Pin
Christian Graus11-May-08 20:50
protectorChristian Graus11-May-08 20:50 
GeneralRe: On Click of Logout i want to prevent the user from clicking the back button and viewing the data Pin
shraddha190411-May-08 21:09
shraddha190411-May-08 21:09 
My logout option is available in all the pages. this is a part of the banner as a user control. hence i cant place in the user control.

history.go(1);

if there is a just one Page for signout then this works. otherwise throughout the application it prevents me from going to the previous page using the back button (even though the user is not logged out).

i have even tried this using Javascript code on logout, but this doesnt work.

protected void Logout_Click(object sender, EventArgs e)
{
Session.Abandon();
string sScript = " history.go(1); ";

if (!Page.ClientScript.IsStartupScriptRegistered("privacy"))
Page.ClientScript.RegisterStartupScript(typeof(Page), "privacy", sScript);

Response.Redirect("Login.aspx");
}

Please Help !!
GeneralRe: On Click of Logout i want to prevent the user from clicking the back button and viewing the data Pin
Krazy Programmer11-May-08 21:13
Krazy Programmer11-May-08 21:13 
GeneralRe: On Click of Logout i want to prevent the user from clicking the back button and viewing the data Pin
Christian Graus11-May-08 21:29
protectorChristian Graus11-May-08 21:29 
GeneralRe: On Click of Logout i want to prevent the user from clicking the back button and viewing the data Pin
eyeseetee11-May-08 21:38
eyeseetee11-May-08 21:38 
GeneralRe: On Click of Logout i want to prevent the user from clicking the back button and viewing the data Pin
Christian Graus11-May-08 21:56
protectorChristian Graus11-May-08 21:56 
GeneralRe: On Click of Logout i want to prevent the user from clicking the back button and viewing the data Pin
eyeseetee11-May-08 22:01
eyeseetee11-May-08 22:01 
GeneralRe: On Click of Logout i want to prevent the user from clicking the back button and viewing the data Pin
Christian Graus11-May-08 21:28
protectorChristian Graus11-May-08 21:28 
Questionhow to get RichTextBox in .net with c# Pin
sugunavathysubramanian11-May-08 19:28
sugunavathysubramanian11-May-08 19:28 
AnswerRe: how to get RichTextBox in .net with c# Pin
Christian Graus11-May-08 19:58
protectorChristian Graus11-May-08 19:58 
AnswerRe: how to get RichTextBox in .net with c# Pin
Krazy Programmer11-May-08 19:58
Krazy Programmer11-May-08 19:58 
QuestionExcel sheet data searching and its report??? Pin
Karan_TN11-May-08 19:03
Karan_TN11-May-08 19:03 
AnswerRe: Excel sheet data searching and its report??? Pin
Christian Graus11-May-08 20:56
protectorChristian Graus11-May-08 20:56 
QuestionRe: Excel sheet data searching and its report??? Pin
Karan_TN11-May-08 22:44
Karan_TN11-May-08 22:44 
Questionto check userid is available or not ,if not then AutoGenerate USERID Pin
Vbr00711-May-08 9:11
Vbr00711-May-08 9:11 
AnswerRe: to check userid is available or not ,if not then AutoGenerate USERID Pin
Christian Graus11-May-08 12:56
protectorChristian Graus11-May-08 12:56 
Questionlogout problem help me?/// Pin
Vbr00711-May-08 8:07
Vbr00711-May-08 8:07 
AnswerRe: logout problem help me?/// Pin
Christian Graus11-May-08 12:58
protectorChristian Graus11-May-08 12:58 
QuestionProtecting files with HttpHandler - check for right-click...? Pin
NeverHeardOfMe11-May-08 3:02
NeverHeardOfMe11-May-08 3:02 

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.