back button disable

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Feb 2008
Posts: 6
Reputation: successalways is an unknown quantity at this point 
Solved Threads: 0
successalways successalways is offline Offline
Newbie Poster

back button disable

 
0
  #1
Feb 12th, 2008
I want disable my back button in internet explorer when i am logged out.. iam using asp.net platform for my project..
i hope u willl sent me the code which may be usefull
waiting for ur reply..
thank you
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 178
Reputation: sbv is an unknown quantity at this point 
Solved Threads: 8
sbv's Avatar
sbv sbv is offline Offline
Junior Poster

Re: back button disable

 
0
  #2
Feb 12th, 2008
actually this type of out put is gained by using sessions .
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 6
Reputation: successalways is an unknown quantity at this point 
Solved Threads: 0
successalways successalways is offline Offline
Newbie Poster

Re: back button disable

 
0
  #3
Feb 12th, 2008
Originally Posted by sbv View Post
actually this type of out put is gained by using sessions .
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)
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 84
Reputation: nandhinijp is an unknown quantity at this point 
Solved Threads: 4
nandhinijp nandhinijp is offline Offline
Junior Poster in Training

Re: back button disable

 
0
  #4
Feb 13th, 2008
After logged out ,if you click back button it should stay in same page or index page.no need to navigate any one of the login page.this is your need .Am i correct?
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,080
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Solved Threads: 68
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: back button disable

 
0
  #5
Feb 13th, 2008
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 ^^
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 216
Reputation: jamello is an unknown quantity at this point 
Solved Threads: 6
jamello's Avatar
jamello jamello is offline Offline
Posting Whiz in Training

Re: back button disable

 
0
  #6
Feb 13th, 2008
I do not think you would be able to disable the back button. My take is that you take a critical look at your design again so that it mitigates this problem.
I had the same problem some time ago and my research led to a dead end.
I had to redesign.
peace
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 84
Reputation: nandhinijp is an unknown quantity at this point 
Solved Threads: 4
nandhinijp nandhinijp is offline Offline
Junior Poster in Training

Re: back button disable

 
0
  #7
Feb 14th, 2008
you use one intermediate page to redirect.it solves your problem if your need like my previous reply.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 84
Reputation: nandhinijp is an unknown quantity at this point 
Solved Threads: 4
nandhinijp nandhinijp is offline Offline
Junior Poster in Training

Re: back button disable

 
0
  #8
Feb 14th, 2008
<script type="text/javascript" language="javascript">
javascript:window.history.forward(1);
</script>

if you need no navigation in X page you will add this code in previous of X page.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 2845 | Replies: 7
Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC