Reputation: 2384
I need to retrive the Url of an application that is iframed... What I have is an application that iframes another application.
For the application that's iframed I would like to retrive its Url, my question is now... would Request.Url for the application thats iframed return the iframed applications url (the url thats in the src of the "main-application") or would it return the browser adress?
Just wanted to double check this with you guys.
Thanks in advance!
Upvotes: 2
Views: 3730
Reputation: 40536
The Request.Url
will return the iframe
's Url.
If for some reason you want the Url of the page that contains the iframe
, try using Request.UrlReferrer
instead.
Upvotes: 8