Is there a way to get the parent URL from an Iframe's content?
top.location.href
But that will only work if both pages (the iframe and the main page) are being served from the same domain.
To get the URL:
Request.UrlReferrer....
To digest the query string:
NameValueCollection qs = HttpUtility.ParseQueryString(Request.UrlReferrer.Query);