How to get the URL of the parent from an iframe in ASP.NET

Posted by user163457 on Stack Overflow See other posts from Stack Overflow or by user163457
Published on 2010-02-26T14:31:35Z Indexed on 2010/06/13 23:02 UTC
Read the original article Hit count: 125

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET