•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 402,509 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,819 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1259 | Replies: 7
![]() |
•
•
Join Date: Feb 2008
Posts: 6
Reputation:
Rep Power: 0
Solved Threads: 0
ya i have used session..
but not able to disable back button..
the coding i have used is
Response.buffer=true
Response.expires=60
response.ExpiresAbsolute= dateTime.noe.addsday(-1)
response.addHeader("{Pragma","no-cache")
response.addheader("cache-control","private")
response.cacheControl = "no-cache"
response.cache.setCacheability(Httpcacheability.Nocache)
•
•
Join Date: Sep 2007
Posts: 1,057
Reputation:
Rep Power: 3
Solved Threads: 61
You cannot disable the back button. It is just not possible.
You can hide the bars with code, but by right clicking, the "back" link is still there.
You can disable the right-click but the backspace still sends you back a page.
You can disable the backspace event, and you thought of everything.
Except when the user goes to the internet explorer File -> View -> Toolbars...
And then you have to start all over again. Like I said, it's just not possible ^^
You can hide the bars with code, but by right clicking, the "back" link is still there.
You can disable the right-click but the backspace still sends you back a page.
You can disable the backspace event, and you thought of everything.
Except when the user goes to the internet explorer File -> View -> Toolbars...
And then you have to start all over again. Like I said, it's just not possible ^^
•
•
Join Date: Oct 2006
Location: somewhere in West-Africa
Posts: 196
Reputation:
Rep Power: 2
Solved Threads: 6
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- How to disable back button and backspace using Javascript..? (JavaScript / DHTML / AJAX)
- How to disable Back button of IE when executing welcome.aspx page? (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: Temporary Web Page problem
- Next Thread: Back button in browser



Linear Mode