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.

ASP iframe parent page url

Discussion in 'C#' started by n971, Feb 15, 2009.

  1. #1
    How can I get parent page url of some iframe (in ASP)?

    Means, my iframe is loaded into www.example.com page, haow can I get that page URL from my iframe?

    TIA
     
    n971, Feb 15, 2009 IP
  2. gnp

    gnp Peon

    Messages:
    137
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hello,

    this will do what you want ..
    
    [COLOR="purple"]request.serverVariables[/COLOR]([COLOR="Green"]"HTTP_REFERER"[/COLOR]) 
    
    Code (markup):
    take care
     
    gnp, Feb 15, 2009 IP
    n971 likes this.
  3. camjohnson95

    camjohnson95 Active Member

    Messages:
    737
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #3
    yeh the parent page will be the referrer. It will also show up on AWStats as the referrering page.
     
    camjohnson95, Feb 16, 2009 IP
  4. n971

    n971 Well-Known Member

    Messages:
    236
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    123
    #4
    So simple :) tnx

     
    n971, Feb 16, 2009 IP
  5. gnp

    gnp Peon

    Messages:
    137
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    you are welcome :)
     
    gnp, Feb 16, 2009 IP