Professional Web Applications Themes

back button - disable - ASP.NET General

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? Thanks! Bill...

Sponsored Links
  1. #1

    Default back button - disable

    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?

    Thanks!
    Bill





    Sponsored Links
    belgie Guest

  2. #2

    Default Re: back button - disable

    belgie <belgiehns.com> wrote:
    > 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?
    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]


    Peter Wu Guest

  3. #3

    Default Re: back button - disable

    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" <peterwuhotmail.com> wrote in message
    news:bfrugs$hrq57$1ID-117651.news.uni-berlin.de...
    > belgie <belgiehns.com> wrote:
    >
    > > 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?
    >
    > 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]
    >
    >

    belgie Guest

  4. #4

    Default Re: back button - disable

    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" <belgiehns.com> wrote in message
    news:OoSzLntUDHA.2224TK2MSFTNGP10.phx.gbl...
    > 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?
    >
    > Thanks!
    > Bill
    >
    >
    >
    >
    >

    Alvin Bruney Guest

  5. #5

    Default Re: back button - disable

    The is no Response.Setcacheability property in ASP.


    "Alvin Bruney" <vapordan_spam_me_nothotmail_no_spamhotmail.com > wrote in
    message news:#qPg46vUDHA.2248TK2MSFTNGP12.phx.gbl...
    > 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" <belgiehns.com> wrote in message
    > news:OoSzLntUDHA.2224TK2MSFTNGP10.phx.gbl...
    > > 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?
    > >
    > > Thanks!
    > > Bill
    > >
    > >
    > >
    > >
    > >
    >
    >

    Scott M. Guest

  6. #6

    Default Re: back button - disable

    I need to inactive the back button when user loggout from the website in ASP.NET

    Pls anybody answer me >>>>

    Thanks

    Saroj
    sarojangel Guest

Similar Threads

  1. How to Disable F5 Key, Foward and Back buttons
    By Suman Puli in forum Macromedia Flex General Discussion
    Replies: 2
    Last Post: September 9th, 10:14 AM
  2. Disable back button in browser and X in top right
    By nrutter in forum Macromedia Flex General Discussion
    Replies: 1
    Last Post: May 20th, 06:15 PM
  3. How do I disable Back Button in Browser?
    By [-e-] Alas in forum Macromedia ColdFusion
    Replies: 8
    Last Post: March 22nd, 03:32 AM
  4. HOW TO DISABLE BACK BUTTON IN ASP
    By bharath in forum ASP Database
    Replies: 2
    Last Post: February 5th, 09:38 PM
  5. Disable the tab button
    By Thyrecktorr webforumsuser@macromedia.com in forum Macromedia Director Basics
    Replies: 1
    Last Post: November 3rd, 01:12 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139