back button - disable

Ask a Question related to ASP.NET General, Design and Development.

  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





    belgie Guest

  2. Similar Questions and Discussions

    1. How to Disable F5 Key, Foward and Back buttons
      HI, Can anybody send sample code for , disabling the F5, Back,Forward button in browser. Thanks, Suman Puli
    2. Disable back button in browser and X in top right
      Has anyone ever seen code out there for disabling the back button or the close button? I don't want the user to be able to leave the flex app...
    3. How do I disable Back Button in Browser?
      i get incredibly grumpy every time someone asks a question then they get bombarded with 'we have to think of the user' and 'u have no right to mess...
    4. HOW TO DISABLE BACK BUTTON IN ASP
      hi all For a user to log of in an application ,i've used session.abandon method and furthur the control is redirected to the home page.as a...
    5. Disable the tab button
      Hi All, I have a little problem, i have some sort of calculator with a bunch of textmembers which are editable. The thing is that i don't want ppl...
  3. #2

    Default Re: back button - disable

    belgie <belgie@hns.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

  4. #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" <peterwu@hotmail.com> wrote in message
    news:bfrugs$hrq57$1@ID-117651.news.uni-berlin.de...
    > belgie <belgie@hns.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

  5. #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" <belgie@hns.com> wrote in message
    news:OoSzLntUDHA.2224@TK2MSFTNGP10.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

  6. #5

    Default Re: back button - disable

    The is no Response.Setcacheability property in ASP.


    "Alvin Bruney" <vapordan_spam_me_not@hotmail_no_spamhotmail.com > wrote in
    message news:#qPg46vUDHA.2248@TK2MSFTNGP12.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" <belgie@hns.com> wrote in message
    > news:OoSzLntUDHA.2224@TK2MSFTNGP10.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

  7. #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

Posting Permissions

  • You may not post new threads
  • You may 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