I have a child page (e.g. http://www.domain.com/childpage.aspx) within a parent page (e.g. http://www.domain.com/parentpage.aspx) using an iframe.
I'd like to know what the URL of the parent page is using server-side code. would that be possible?
Request.Browser
gives the URL of the child page only.
I also checked Request.UrlReferrer
which contains the parent page URL only the first time the page loads. As soon as I click on a link inside the child page, the Request.UrlReferrer
won't be the parent page any more, it will be the previous page.
I'd like to know what the URL of the parent page is using server-side code.