How do I get the calling page?

Discussion in 'ASP General' started by wolfing1@yahoo.com, May 19, 2005.

  1. Guest

    is there a way of getting the page that called the current page? Like,
    I'd like to add a 'back' button that fills some info and then sends to
    the previous page, which could be one of many pages that can call this
    current page.
    So, other than adding a form hidden field and passing it at submit or
    whatnot, is there something like session('callingpage') or something
    like that?
     
    , May 19, 2005
    #1
    1. Advertisements

  2. Steven Burn Guest

    The best your going to get is the HTTP_REFERER property;

    Response.Write Request.ServerVariables("HTTP_REFERER")

    Note however, this is by no means practical as some clients choose to "hide" or block this information

    --
    Regards

    Steven Burn
    Ur I.T. Mate Group
    www.it-mate.co.uk

    Keeping it FREE!

    <> wrote in message news:...
    > is there a way of getting the page that called the current page? Like,
    > I'd like to add a 'back' button that fills some info and then sends to
    > the previous page, which could be one of many pages that can call this
    > current page.
    > So, other than adding a form hidden field and passing it at submit or
    > whatnot, is there something like session('callingpage') or something
    > like that?
    >
     
    Steven Burn, May 19, 2005
    #2
    1. Advertisements

  3. http://www.powerasp.com/content/code-snippets/server-variables.asp


    <> wrote in message
    news:...
    > is there a way of getting the page that called the current page? Like,
    > I'd like to add a 'back' button that fills some info and then sends to
    > the previous page, which could be one of many pages that can call this
    > current page.
    > So, other than adding a form hidden field and passing it at submit or
    > whatnot, is there something like session('callingpage') or something
    > like that?
    >
     
    Kyle Peterson, May 19, 2005
    #3
  4. Guest

    Beautiful! it worked
    And thanks for the prompt responses!
     
    , May 19, 2005
    #4
    1. Advertisements

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. Christopher Ambler
    Replies:
    2
    Views:
    785
    Christopher Ambler
    Aug 27, 2003
  2. JezB
    Replies:
    1
    Views:
    1,126
    avnrao
    May 21, 2004
  3. Replies:
    1
    Views:
    790
  4. jobs
    Replies:
    1
    Views:
    583
    Nick Chan
    Nov 14, 2007
  5. Replies:
    1
    Views:
    1,448
  6. Chevron Boyde
    Replies:
    1
    Views:
    1,575
    George
    Dec 8, 2008
  7. Savvoulidis Iordanis
    Replies:
    2
    Views:
    1,085
    Alexey Smirnov
    Jun 30, 2009
  8. Chuck
    Replies:
    0
    Views:
    379
    Chuck
    Jul 5, 2003
Loading...