tags:

views:

103

answers:

1

Hi, I have a page on the example.com domain which contains an IFrame, this IFrame loads an ASP.NET page (c#) from the example2.com domain.

From the code behind on the example2.com domain how can I get the URL of the master page?

Would it help if the 2 pages were on the same domain, so example.com contains an iframe with sub.example.com?

Thanks

A: 

If you have access to the parent frame you can send the url of the page to your from with querystring. You can call your page as...

mysite.com/innerIframePage.aspx?parentPageUrl=http://.....

This way you can get the url from your codebehind

Aykut
this isn't going to work for me, thanks. I need to be able to check that the master page the iframe is embedded in is the correct one