Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: disable backward navigation of the browser

Reply
Thread Tools

Re: disable backward navigation of the browser

 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      03-07-2005
There's not really a great way to do this.
I've heard of some people having some luck with the javascript
history.forward() method.
Another way is to pop open a new window, which will have no history and so
the back button will be disabled.

You can also try expiring the previous page.
To prevent such page caching, use this code:
Response.Expires = 0
Response.Cache.SetNoStore()
Response.AppendHeader("Pragma", "no-cache")

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


"joseph blayil via .NET 247" <> wrote in message
news:...
> (Type your message here)
>
> --------------------------------
> From: joseph blayil
>
> i want to disable backward navigation of the browser
> eg: after signing out of yahoo we can't go to the last page visited
>
> -----------------------
> Posted by a user from .NET 247 (http://www.dotnet247.com/)
>
> <Id>rjCZI+Gm2EqhSoJzdoHbOA==</Id>



 
Reply With Quote
 
 
 
 
Jeffrey Palermo
Guest
Posts: n/a
 
      03-07-2005
I would recommend against going this route. It will frustrate users,
and usability will suffer. If security is the issue, you can implement
it in other ways. If a user signs out, and you don't want them to be
able to go back, then Set Response.Expires to 0, as Steve suggests.

Best regards,
Jeffrey Palermo
Blog: http://www.jeffreypalermo.com



Steve C. Orr [MVP, MCSD] wrote:
> There's not really a great way to do this.
> I've heard of some people having some luck with the javascript
> history.forward() method.
> Another way is to pop open a new window, which will have no history

and so
> the back button will be disabled.
>
> You can also try expiring the previous page.
> To prevent such page caching, use this code:
> Response.Expires = 0
> Response.Cache.SetNoStore()
> Response.AppendHeader("Pragma", "no-cache")
>
> --
> I hope this helps,
> Steve C. Orr, MCSD, MVP
> http://SteveOrr.net
>
>
> "joseph blayil via .NET 247" <> wrote in

message
> news:...
> > (Type your message here)
> >
> > --------------------------------
> > From: joseph blayil
> >
> > i want to disable backward navigation of the browser
> > eg: after signing out of yahoo we can't go to the last page visited
> >
> > -----------------------
> > Posted by a user from .NET 247 (http://www.dotnet247.com/)
> >
> > <Id>rjCZI+Gm2EqhSoJzdoHbOA==</Id>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I disable Side Navigation on a Wizard control? Jeff ASP .Net 0 08-01-2008 07:55 AM
Disable the navigation buttons for IE navigation toolbar Laurahn ASP .Net 3 02-06-2007 04:17 AM
preventing backward navigation after logout PJ6 ASP .Net 4 10-14-2005 04:47 PM
Disable navigation buttons eje ASP .Net 2 12-02-2004 11:50 PM
Backward North America still...backward! Richard DVD Video 17 08-19-2004 04:55 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57