Professional Web Applications Themes

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

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

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

  3. #3

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

    "daddywhite" <davidwhitefordhotmail.com> wrote in message
    news:1190662624.566440.57040g4g2000hsf.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

  4. #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" <davidwhitefordhotmail.com> wrote in message
    news:1190662624.566440.57040g4g2000hsf.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

  5. #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" <davidwhitefordhotmail.com> wrote in message news:1190662624.566440.57040g4g2000hsf.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

Similar Threads

  1. Previous and Next --- MSN Home Page
    By EradofGunblade in forum Macromedia Dynamic HTML
    Replies: 1
    Last Post: November 22nd, 07:53 PM
  2. Jump to same Place on Previous/next page
    By Eric_@_MCA@adobeforums.com in forum Adobe Indesign Macintosh
    Replies: 0
    Last Post: June 30th, 09:00 PM
  3. Previous page :file name
    By jjonney in forum Coldfusion - Getting Started
    Replies: 2
    Last Post: October 5th, 12:45 AM
  4. Previous (and Next) Page Number don't work
    By Boyan_Mladenov@adobeforums.com in forum Adobe Indesign Windows
    Replies: 6
    Last Post: May 16th, 05:20 PM
  5. Replies: 1
    Last Post: September 5th, 10:09 AM

Bookmarks

Posting Permissions

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