HELP! -- previous page in VB and ASP 3.0

Ask a Question related to ASP Components, Design and Development.

  1. #1

    Default HELP! -- previous page in VB and ASP 3.0

    Hello all,

    I'm writing you because I have a question for you all: how can I capture the
    previous page from an ASP file?

    I need to add the URL (with parameters if possible) of the previous page to
    a table in SQL Server.

    For example: the page that captures the info is anydomain.com/asppage.asp
    and if the previous page in the browser history is
    otherdomain.com/otherpage.asp, I need to be able to capture that information

    If possible, of course...

    Thanks in advance for your help and prompt response,
    SB-R


    segis bata Guest

  2. Similar Questions and Discussions

    1. Previous and Next --- MSN Home Page
      Good Morning. On MSN.com there is cleaver little news box at the top of the page that automatically cycles through their three featured news...
    2. Navigation on detail page. (Next) - (Previous) Please help!!
      I have created a master page that is for my picture gallery I am using the thumbnail as a link to my detail page. On my detail page I am showing...
    3. Previous page :file name
      I have couple of pages directing to the same action page. I need to get the coldfusion file name from where the form action originated. For...
    4. How to give to a require () fct a value from a previous page ?
      This is a very newbe question. I have published on my site a couple of articles. To do so, I created 1 html page for every article. As the layout...
    5. Accessing Values of local variables in previous page when using custom error page
      Hello, I have created a nice funky 500 - 100 error page which gives a nicer error; happily loops through and supplies querysting information, all...
  3. #2

    Default Re: HELP! -- previous page in VB and ASP 3.0

    On 24 Sep, 20:09, "segis bata" <segisb...@hotmail.com> wrote:
    > Hello all,
    >
    > I'm writing you because I have a question for you all: how can I capture the
    > previous page from an ASP file?
    >
    > I need to add the URL (with parameters if possible) of the previous page to
    > a table in SQL Server.
    >
    > For example: the page that captures the info is anydomain.com/asppage.asp
    > and if the previous page in the browser history is
    > otherdomain.com/otherpage.asp, I need to be able to capture that information
    >
    > If possible, of course...
    >
    > Thanks in advance for your help and prompt response,
    > SB-R
    You can use Request.ServerVariables("HTTP_REFERER") to capture what
    page sent you to the current page.

    is this what you need?

    regards
    dave

    daddywhite Guest

  4. #3

    Default Re: HELP! -- previous page in VB and ASP 3.0

    "daddywhite" <davidwhiteford@hotmail.com> wrote in message
    news:1190662624.566440.57040@g4g2000hsf.googlegrou ps.com...
    > On 24 Sep, 20:09, "segis bata" <segisb...@hotmail.com> wrote:
    > > Hello all,
    > >
    > > I'm writing you because I have a question for you all: how can I capture
    the
    > > previous page from an ASP file?
    > >
    > > I need to add the URL (with parameters if possible) of the previous page
    to
    > > a table in SQL Server.
    > >
    > > For example: the page that captures the info is
    anydomain.com/asppage.asp
    > > and if the previous page in the browser history is
    > > otherdomain.com/otherpage.asp, I need to be able to capture that
    information
    > >
    > > If possible, of course...
    > >
    > > Thanks in advance for your help and prompt response,
    > > SB-R
    >
    > You can use Request.ServerVariables("HTTP_REFERER") to capture what
    > page sent you to the current page.
    Be aware that some software blocks it.

    [url]http://karmak.org/2004/reftest/fix[/url]


    McKirahan Guest

  5. #4

    Default Re: HELP! -- previous page in VB and ASP 3.0

    Hello Dave,

    That variable doesn't return any values

    BTW, I'm using Win2003 SP1 IIS 6.0

    "daddywhite" <davidwhiteford@hotmail.com> wrote in message
    news:1190662624.566440.57040@g4g2000hsf.googlegrou ps.com...
    > On 24 Sep, 20:09, "segis bata" <segisb...@hotmail.com> wrote:
    >> Hello all,
    >>
    >> I'm writing you because I have a question for you all: how can I capture
    >> the
    >> previous page from an ASP file?
    >>
    >> I need to add the URL (with parameters if possible) of the previous page
    >> to
    >> a table in SQL Server.
    >>
    >> For example: the page that captures the info is anydomain.com/asppage.asp
    >> and if the previous page in the browser history is
    >> otherdomain.com/otherpage.asp, I need to be able to capture that
    >> information
    >>
    >> If possible, of course...
    >>
    >> Thanks in advance for your help and prompt response,
    >> SB-R
    >
    > You can use Request.ServerVariables("HTTP_REFERER") to capture what
    > page sent you to the current page.
    >
    > is this what you need?
    >
    > regards
    > dave
    >

    segis bata Guest

  6. #5

    Default Re: HELP! -- previous page in VB and ASP 3.0

    It will contain data if the browser sends it - this is done is the browser
    follows a link to your page so long as intervening software doesn't strip it
    out. If someone just types your page URL into their browser then you can't
    obtain the value of the previous URL (at least as far as I know, although it
    may be possible with some client side scripting but would require user
    intervention, if it was automatic then it'd be a security risk to the
    browser.

    Dan

    segis wrote on Mon, 24 Sep 2007 17:23:07 -0400:
    > Hello Dave,
    > That variable doesn't return any values
    > BTW, I'm using Win2003 SP1 IIS 6.0
    > "daddywhite" <davidwhiteford@hotmail.com> wrote in message news:1190662624.566440.57040@g4g2000hsf.googlegrou ps.com...
    >> On 24 Sep, 20:09, "segis bata" <segisb...@hotmail.com> wrote:
    >>> Hello all,
    >>> I'm writing you because I have a question for you all: how can I
    >>> capture the previous page from an ASP file?
    >>> I need to add the URL (with parameters if possible) of the previous
    >>> page to a table in SQL Server.
    >>> For example: the page that captures the info is
    >>> anydomain.com/asppage.asp and if the previous page in the browser
    >>> history is otherdomain.com/otherpage.asp, I need to be able to
    >>> capture that information
    >>> If possible, of course...
    >>> Thanks in advance for your help and prompt response,
    >>> SB-R
    >> You can use Request.ServerVariables("HTTP_REFERER") to capture what
    >> page sent you to the current page.
    >> is this what you need?
    >> regards dave


    Daniel Crichton 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