Click here to Skip to main content
15,888,579 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionjavascript for disable back button Pin
Kissy163-Jun-09 20:53
Kissy163-Jun-09 20:53 
AnswerRe: javascript for disable back button Pin
Christian Graus3-Jun-09 21:00
protectorChristian Graus3-Jun-09 21:00 
AnswerRe: javascript for disable back button Pin
Jay Royall3-Jun-09 22:33
Jay Royall3-Jun-09 22:33 
GeneralRe: javascript for disable back button Pin
Kissy163-Jun-09 23:00
Kissy163-Jun-09 23:00 
GeneralRe: javascript for disable back button Pin
Jay Royall3-Jun-09 23:28
Jay Royall3-Jun-09 23:28 
GeneralRe: javascript for disable back button Pin
Christian Graus3-Jun-09 23:36
protectorChristian Graus3-Jun-09 23:36 
GeneralRe: javascript for disable back button Pin
Kissy164-Jun-09 0:10
Kissy164-Jun-09 0:10 
AnswerRe: javascript for disable back button Pin
Brian W King4-Jun-09 2:40
Brian W King4-Jun-09 2:40 
Try this out;

protected void Page_load
{
StringBuilder javaScript = new StringBuilder();

javaScript.Append("\n<script language=JavaScript>\n");
javaScript.Append("window.history.forward(1);\n");
javaScript.Append("</script>\n");

Page.RegisterClientScriptBlock("HistoryScript", javaScript.ToString());
}

Its a bit of a trick, but works for me. The real problem is that newer browsers purposefully remove the ability for code to effect the menus of the browser now as some nasty hackers keep finding ways to hijack the browser using these methods. Probably the code above will become useless after a time too when someone starts to use it in-appropriately and we will have to creatively come up with a new method. Just be cautious in how you apply it. Cool | :cool:
AnswerRe: javascript for disable back button Pin
RichardGrimmer5-Jun-09 0:58
RichardGrimmer5-Jun-09 0:58 
QuestionMicrosoft Certification Professional in ASP.NET Pin
K03063-Jun-09 20:08
K03063-Jun-09 20:08 
AnswerRe: Microsoft Certification Professional in ASP.NET Pin
Abhijit Jana3-Jun-09 20:30
professionalAbhijit Jana3-Jun-09 20:30 
GeneralRe: Microsoft Certification Professional in ASP.NET Pin
K03063-Jun-09 20:53
K03063-Jun-09 20:53 
GeneralRe: Microsoft Certification Professional in ASP.NET Pin
Abhijit Jana3-Jun-09 21:04
professionalAbhijit Jana3-Jun-09 21:04 
AnswerRe: Microsoft Certification Professional in ASP.NET Pin
Christian Graus3-Jun-09 20:49
protectorChristian Graus3-Jun-09 20:49 
QuestionASP.NET configuration Pin
ayeleteric3-Jun-09 19:15
ayeleteric3-Jun-09 19:15 
AnswerRe: ASP.NET configuration Pin
Abhijit Jana3-Jun-09 19:26
professionalAbhijit Jana3-Jun-09 19:26 
GeneralRe: ASP.NET configuration Pin
ayeleteric3-Jun-09 22:00
ayeleteric3-Jun-09 22:00 
QuestionNeed to open Access application from web application Pin
samerh3-Jun-09 19:13
samerh3-Jun-09 19:13 
AnswerRe: Need to open Access application from web application Pin
Abhijit Jana3-Jun-09 19:29
professionalAbhijit Jana3-Jun-09 19:29 
GeneralRe: Need to open Access application from web application Pin
samerh3-Jun-09 19:47
samerh3-Jun-09 19:47 
GeneralRe: Need to open Access application from web application Pin
Abhijit Jana3-Jun-09 19:52
professionalAbhijit Jana3-Jun-09 19:52 
GeneralRe: Need to open Access application from web application Pin
samerh3-Jun-09 19:57
samerh3-Jun-09 19:57 
GeneralRe: Need to open Access application from web application Pin
Abhijit Jana3-Jun-09 20:05
professionalAbhijit Jana3-Jun-09 20:05 
GeneralRe: Need to open Access application from web application Pin
Abhijit Jana3-Jun-09 20:05
professionalAbhijit Jana3-Jun-09 20:05 
GeneralRe: Need to open Access application from web application Pin
samerh3-Jun-09 21:03
samerh3-Jun-09 21:03 

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.