belgie <belgie@hns.com > wrote:
[color=blue]
> Is there a way to prevent the user from using the browser Back Button
> to go back to a previous page in an ASP.NET application?[/color]
Have the previous page expire immediately. When the user hits Back button
of the browser, the page will have expired.
--
Peter Wu
Powered by Microsoft Windows XP [Version 5.1.2600]
I tried this:
Response.Cache. SetExpires(Date .Now)
in the Page_Load event, but it didn't seem to work. I could still go back
to it with the back button.
Thanks!
"Peter Wu" <peterwu@hotmai l.com> wrote in message
news:bfrugs$hrq 57$1@ID-117651.news.uni-berlin.de...[color=blue]
> belgie <belgie@hns.com > wrote:
>[color=green]
> > Is there a way to prevent the user from using the browser Back Button
> > to go back to a previous page in an ASP.NET application?[/color]
>
> Have the previous page expire immediately. When the user hits Back button
> of the browser, the page will have expired.
>
> --
> Peter Wu
> Powered by Microsoft Windows XP [Version 5.1.2600]
>
>[/color]
You need to use Setcacheability property of the response object. That will
kill the back button dead in its tracks. Actually, the button will still be
there, after clicking it, you will get a message - page has expired from
cache.
"belgie" <belgie@hns.com > wrote in message
news:OoSzLntUDH A.2224@TK2MSFTN GP10.phx.gbl...[color=blue]
> Is there a way to prevent the user from using the browser Back Button to[/color]
go[color=blue]
> back to a previous page in an ASP.NET application?
>
> Thanks!
> Bill
>
>
>
>
>[/color]
The is no Response.Setcac heability property in ASP.
"Alvin Bruney" <vapordan_spam_ me_not@hotmail_ no_spamhotmail. com> wrote in
message news:#qPg46vUDH A.2248@TK2MSFTN GP12.phx.gbl...[color=blue]
> You need to use Setcacheability property of the response object. That will
> kill the back button dead in its tracks. Actually, the button will still[/color]
be[color=blue]
> there, after clicking it, you will get a message - page has expired from
> cache.
>
> "belgie" <belgie@hns.com > wrote in message
> news:OoSzLntUDH A.2224@TK2MSFTN GP10.phx.gbl...[color=green]
> > Is there a way to prevent the user from using the browser Back Button to[/color]
> go[color=green]
> > back to a previous page in an ASP.NET application?
> >
> > Thanks!
> > Bill
> >
> >
> >
> >
> >[/color]
>
>[/color]
Comment