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

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

  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. 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. JezB
    Replies:
    1
    Views:
    987
    avnrao
    May 21, 2004
  2. Ryan Ternier
    Replies:
    4
    Views:
    3,975
    Cowboy \(Gregory A. Beamer\) [MVP]
    Jul 29, 2004
  3. =?Utf-8?B?TWFydGluIExlZQ==?=

    Calling FormsAuthentication.SignOut() after calling Response.Flush

    =?Utf-8?B?TWFydGluIExlZQ==?=, Sep 28, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    732
    =?Utf-8?B?RXRoZW0gQXp1bg==?=
    Sep 28, 2004
  4. Replies:
    1
    Views:
    702
  5. Chuck
    Replies:
    0
    Views:
    255
    Chuck
    Jul 5, 2003
Loading...

Share This Page