Click here to Skip to main content
15,900,108 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: My page change event does not fire for first page. Pin
Anees Mitha17-Aug-07 0:18
Anees Mitha17-Aug-07 0:18 
GeneralRe: My page change event does not fire for first page. Pin
Anees Mitha17-Aug-07 0:59
Anees Mitha17-Aug-07 0:59 
QuestionHtml to Xml Conversion and viceversa Pin
ayurhdfkl16-Aug-07 21:01
ayurhdfkl16-Aug-07 21:01 
AnswerRe: Html to Xml Conversion and viceversa Pin
daniel__c16-Aug-07 21:08
daniel__c16-Aug-07 21:08 
GeneralRe: Html to Xml Conversion and viceversa Pin
ayurhdfkl16-Aug-07 21:14
ayurhdfkl16-Aug-07 21:14 
GeneralRe: Html to Xml Conversion and viceversa Pin
daniel__c16-Aug-07 21:21
daniel__c16-Aug-07 21:21 
GeneralRe: Html to Xml Conversion and viceversa Pin
ayurhdfkl16-Aug-07 22:54
ayurhdfkl16-Aug-07 22:54 
QuestionHow to clear browser's Cache. Pin
naresh51116-Aug-07 20:52
naresh51116-Aug-07 20:52 
Hi,
I am developing a Web application in ASP.NET 2.0 and having a "Signout" hyperlink on my top user control. When a logged user clicks on signout I simply clears all sessions and redirect user to my login page. The problem is that the user can still view the last page by using browser's back button. At this moment the page doesn't reload bcoz it is already in browser's cache. I just want to disable this back button (I know that this exactly is not possible) but alternatively I can clear browsers history and its cache. I already tried a lot of javascripts like window.history and all but of no use. Please correct where i am going wrong. An alternate solution is to close current browser and open a new fresh one with my homepage (so that back/forward buttons will be disabled initially) but I am unable to do this.
On Signout in codebehind I am doing this:

:-OSession.Clear();
Session.Abandon();
FormsAuthentication.SignOut();
Response.Expires = 0;
Response.Cache.SetNoStore();
Response.AppendHeader("Pragma", "no-cache");
Response.Redirect("Homepage.aspx"); Blush | :O

I also tried this Javascript but of no use:

Blush | :O
Session.Clear();
Session.Abandon();
FormsAuthentication.SignOut();
Response.Write("");

Response.Write("{");
Response.Write(" var Backlen=history.length;");

Response.Write(" history.go(-Backlen);");
Response.Write(" window.location.href='" + nextpage + "'; ");

Response.Write("}");
Response.Write("");

Thanks

Naresh

QuestionDisplay image along with the grid view Pin
Sujit Mandal16-Aug-07 20:38
Sujit Mandal16-Aug-07 20:38 
AnswerRe: Display image along with the grid view Pin
N a r e s h P a t e l16-Aug-07 20:53
N a r e s h P a t e l16-Aug-07 20:53 
GeneralRe: Display image along with the grid view Pin
Sujit Mandal16-Aug-07 20:58
Sujit Mandal16-Aug-07 20:58 
GeneralRe: Display image along with the grid view Pin
N a r e s h P a t e l16-Aug-07 21:11
N a r e s h P a t e l16-Aug-07 21:11 
GeneralRe: Display image along with the grid view Pin
N a r e s h P a t e l16-Aug-07 23:01
N a r e s h P a t e l16-Aug-07 23:01 
GeneralRe: Display image along with the grid view Pin
Sujit Mandal17-Aug-07 2:47
Sujit Mandal17-Aug-07 2:47 
GeneralRe: Display image along with the grid view Pin
DarynRoberts17-Aug-07 2:36
DarynRoberts17-Aug-07 2:36 
GeneralRe: Display image along with the grid view Pin
Sujit Mandal17-Aug-07 2:44
Sujit Mandal17-Aug-07 2:44 
Questionhow i can send my complete form data to the next page.. Pin
ajau16-Aug-07 20:36
ajau16-Aug-07 20:36 
AnswerRe: how i can send my complete form data to the next page.. Pin
N a r e s h P a t e l16-Aug-07 20:44
N a r e s h P a t e l16-Aug-07 20:44 
AnswerRe: how i can send my complete form data to the next page.. Pin
koolprasad200317-Aug-07 0:37
professionalkoolprasad200317-Aug-07 0:37 
Questionauthentication in asp.net2.0 Pin
saravanan0516-Aug-07 20:34
saravanan0516-Aug-07 20:34 
AnswerRe: authentication in asp.net2.0 Pin
N a v a n e e t h16-Aug-07 20:48
N a v a n e e t h16-Aug-07 20:48 
GeneralRe: authentication in asp.net2.0 Pin
saravanan0516-Aug-07 20:56
saravanan0516-Aug-07 20:56 
GeneralRe: authentication in asp.net2.0 Pin
Mark Churchill16-Aug-07 21:24
Mark Churchill16-Aug-07 21:24 
QuestionSPLIT Function Pin
Care Career16-Aug-07 20:20
Care Career16-Aug-07 20:20 
AnswerRe: SPLIT Function Pin
N a r e s h P a t e l16-Aug-07 20:39
N a r e s h P a t e l16-Aug-07 20:39 

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.