Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

DotNetNuke Marketplace
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Iframe Module [...  Get Parent Page URLReferrer from an iFrame
Previous Previous
 
Next Next
New Post 1/15/2007 3:25 PM
User is offline Sajjad Mussani
42 posts
10th Ranked


Get Parent Page URLReferrer from an iFrame  

Hi,

I have an iFrame inside a normal dnn page.  I need to know the URLReferrer for the Parent page only. Request.URLReferrer.Host gives me the referrence for my aspx page and NOT the URL where my parent page was requested from.  Example below:

lets suppose that I have a link for my site on a different site:  www.abc.com

  1. When a user clicks on my link on www.abc.com then they are forwarded to my site:  www.xyz.com
  2. The aspx page on my site that the user is redirected to contains an iFrame.
  3. I would like to know inside this iFrame (running an asp.net app) the URL of the referrer (which is www.abc.com)

I hope this example helped in understanding my problem.  I tried:  Parent.page.request.urlreferrer.host but it gives me an "Object reference not set to an instance of ... " error

Thanks

Sajjad

 
New Post 1/15/2007 10:08 PM
User is offline Stefan Cullmann
1572 posts
5th Ranked








Re: Get Parent Page URLReferrer from an iFrame  
  1. The current release of the Iframe has an packing issue which causes that error. Search the forum for more information.
  2. I think that you can not pass a jscript statement as parameter, but I never tried.

Stefan Cullmann - stefan.cullmann [at] dotnetnuke.com
form and List will be the successor of the User Defined Table module.
----------------------------------------------------------------------
Do you want to import external data to form and List /User Defined Table?
Check out http://www.codeplex.com/Csv2UDTImport
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Iframe Module [...  Get Parent Page URLReferrer from an iFrame
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DotNetNuke Web Hosting w/ ASP.NET 3.5
Unlimited email boxes, Unlimited databases, Unlimited domains. Plans start at $4.97
www.MyWinHosting.com
SteadyRain
Founded in 1999, SteadyRain has extensive experience delivering Internet technology strategies and solutions for a diverse client base, ranging from Fortune 500 firms to successful start-ups.
www.steadyrain.com
AfterImage Internet Consulting and SEO Services
AfterImage provides search engine optimization (SEO), Internet consulting and hosting services for the Windows platform (IIS, ASP, SQL Server).
www.afterimage.nl/

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP