1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Is it possible to take site address on which user was before entering my site

Discussion in 'C#' started by t7584, May 3, 2006.

  1. #1
    Is it possible to take site address on which user was before entering my site (vbs)
     
    t7584, May 3, 2006 IP
  2. dshah

    dshah Well-Known Member

    Messages:
    1,840
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    115
    #2
    I am not sure about VBS, but you can explore few javascript objects to see if you can get handle on the referrer page.

    document.referrer
    history.back()
     
    dshah, May 3, 2006 IP
  3. vectorgraphx

    vectorgraphx Guest

    Messages:
    545
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #3
    sure.
    <%
    dim site_referer
    site_referer = request.servervariables("HTTP_REFERER")
    response.write site_referer
    %>
     
    vectorgraphx, May 3, 2006 IP
  4. doronty37

    doronty37 Active Member

    Messages:
    130
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #4
    if the visitor comes from a link in previous page, you can get the url with http_referrer but if it isn't so, i think it isn't impossible.
     
    doronty37, May 4, 2006 IP
  5. jfilley

    jfilley Peon

    Messages:
    18
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    if your using .NET its Page.Request.UrlReferrer
     
    jfilley, May 4, 2006 IP