Weird Problem: Auto-Jump page doesn't show up in "BACK" history

Discussion in 'ASP .Net' started by VB Programmer, Oct 23, 2003.

  1. I created a page which I am using to prevent the user from hitting the BACK
    button. I'll call it my "Auto Jump" page. When it is called it basically
    auto-redirects to a page specified in the QueryString. (We'll call the page
    it goes to the "destination page".) If the user hits BACK on the
    destination page it should goto the "Auto Jump" page which should put you
    right back to where you hit the button.

    In Page_Load of this "Auto Jump" page I simply put
    "response.redirect(xxx.aspx)".

    The redirect works fine! But, when I click the BACK button from the
    "Destination Page" it goes to the page that called the "Auto Jump" page. In
    the "BACK" button's history I don't see this "Auto Jump" page. Any ideas
    why?

    Thanks.
    VB Programmer, Oct 23, 2003
    #1
    1. Advertising

  2. VB Programmer

    bruce barker Guest

    the browser does not cache a redirect response. you need to render a page
    with a meta tag, or client code that redirects.

    -- bruce (sqlwork.com)




    "VB Programmer" <> wrote in message
    news:...
    > I created a page which I am using to prevent the user from hitting the

    BACK
    > button. I'll call it my "Auto Jump" page. When it is called it basically
    > auto-redirects to a page specified in the QueryString. (We'll call the

    page
    > it goes to the "destination page".) If the user hits BACK on the
    > destination page it should goto the "Auto Jump" page which should put you
    > right back to where you hit the button.
    >
    > In Page_Load of this "Auto Jump" page I simply put
    > "response.redirect(xxx.aspx)".
    >
    > The redirect works fine! But, when I click the BACK button from the
    > "Destination Page" it goes to the page that called the "Auto Jump" page.

    In
    > the "BACK" button's history I don't see this "Auto Jump" page. Any ideas
    > why?
    >
    > Thanks.
    >
    >
    bruce barker, Oct 23, 2003
    #2
    1. Advertising

  3. Could you provide an example? Thx!

    "bruce barker" <> wrote in message
    news:OIX4M%...
    > the browser does not cache a redirect response. you need to render a page
    > with a meta tag, or client code that redirects.
    >
    > -- bruce (sqlwork.com)
    >
    >
    >
    >
    > "VB Programmer" <> wrote in message
    > news:...
    > > I created a page which I am using to prevent the user from hitting the

    > BACK
    > > button. I'll call it my "Auto Jump" page. When it is called it

    basically
    > > auto-redirects to a page specified in the QueryString. (We'll call the

    > page
    > > it goes to the "destination page".) If the user hits BACK on the
    > > destination page it should goto the "Auto Jump" page which should put

    you
    > > right back to where you hit the button.
    > >
    > > In Page_Load of this "Auto Jump" page I simply put
    > > "response.redirect(xxx.aspx)".
    > >
    > > The redirect works fine! But, when I click the BACK button from the
    > > "Destination Page" it goes to the page that called the "Auto Jump" page.

    > In
    > > the "BACK" button's history I don't see this "Auto Jump" page. Any

    ideas
    > > why?
    > >
    > > Thanks.
    > >
    > >

    >
    >
    VB Programmer, Oct 23, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. linkswanted
    Replies:
    1
    Views:
    897
  2. Bruno

    Back (history.back()) after refresh

    Bruno, May 29, 2006, in forum: Javascript
    Replies:
    2
    Views:
    318
    Bruno Lopes
    May 30, 2006
  3. Eadwine Rose
    Replies:
    2
    Views:
    209
    Eadwine Rose
    Oct 15, 2006
  4. Replies:
    2
    Views:
    289
    nutso fasst
    Oct 17, 2006
  5. Bjorn Nordbo

    jump to anchor w/o breaking history

    Bjorn Nordbo, Jan 11, 2007, in forum: Javascript
    Replies:
    2
    Views:
    88
    Bjorn Nordbo
    Jan 12, 2007
Loading...

Share This Page