UrlReferrer issue

Discussion in 'ASP .Net' started by Yoyo, Jul 15, 2003.

  1. Yoyo

    Yoyo Guest

    Hi all!

    I am developing an intranet app and have a problem with the
    Request.UrlReferrer object.

    I use it to keep a "linkstack" of all pages visited on the app to let the
    user surf thru pages (the IE toolbar is not visible).

    I tested it ok on intranet and internet with win2k clients. The problem
    which happens with XP clients is that SOMETIMES the
    Request.UrlReferrer.AbsoluteUri is nothing, leaving the site clueless on
    what to put on the linkstack... Is this a bug, or sometimes UrlReferrer CAN
    be nothing (when?). Is there any other way i can track referrer (ie
    previous) page visited?

    Thanx to anyone will answer

    Bye

    Yoyo
     
    Yoyo, Jul 15, 2003
    #1
    1. Advertising

  2. Hi

    There is no guarantee of referrer
    http://msdn.microsoft.com/library/d...uthor/dhtml/reference/properties/referrer.asp
    also using script to set location will kill referrer

    Are you only tracking pages within system... You could use
    Request.ServerVariables["SCRIPT_NAME"].toString();
    to track user...

    --
    Best Regards
    Vidar Petursson
    ==============================
    Microsoft Internet Client & Controls MVP
    ==============================
    "Yoyo" <> wrote in message
    news:mGSQa.58956$...
    > Hi all!
    >
    > I am developing an intranet app and have a problem with the
    > Request.UrlReferrer object.
    >
    > I use it to keep a "linkstack" of all pages visited on the app to let the
    > user surf thru pages (the IE toolbar is not visible).
    >
    > I tested it ok on intranet and internet with win2k clients. The problem
    > which happens with XP clients is that SOMETIMES the
    > Request.UrlReferrer.AbsoluteUri is nothing, leaving the site clueless on
    > what to put on the linkstack... Is this a bug, or sometimes UrlReferrer

    CAN
    > be nothing (when?). Is there any other way i can track referrer (ie
    > previous) page visited?
    >
    > Thanx to anyone will answer
    >
    > Bye
    >
    > Yoyo
    >
    >
     
    Vidar Petursson, Jul 15, 2003
    #2
    1. Advertising

  3. Yoyo

    Yoyo Guest

    Thanx to both for answering,

    I solved my problem using

    ServerVariables("SCRIPT_NAME") for the page and
    ServerVariables("QUERY_STRING") for the parameters sent.

    Bye

    Yoyo
     
    Yoyo, Jul 16, 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. Hector Bejarano

    Request.UrlReferrer is nothing

    Hector Bejarano, Jul 8, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    855
    Hector Bejarano
    Jul 8, 2003
  2. Harley

    problems with Request.UrlReferrer

    Harley, Aug 9, 2003, in forum: ASP .Net
    Replies:
    5
    Views:
    6,632
    John Saunders
    Aug 10, 2003
  3. Guest

    Usage of "Request.UrlReferrer"

    Guest, Dec 25, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    11,135
    Hermit Dave
    Dec 25, 2003
  4. Ivan Demkovitch

    Request.UrlReferrer is NULL ???

    Ivan Demkovitch, Jan 30, 2004, in forum: ASP .Net
    Replies:
    7
    Views:
    5,526
    Kevin Spencer
    Jan 30, 2004
  5. tony collier
    Replies:
    1
    Views:
    1,650
    Boban Dragojlovic
    Feb 4, 2004
Loading...

Share This Page