Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Within a user control I have used:
Request.RawUrl
and this gives the URL that the user entered.
How do I get the friendly URL for the actual page, or basically the address shown in the browser's address bar, from within a HTTP module?
What I've come up with so far is like this:
But it doesn't work for pages that are set to get their data from another page (under Shortcut/External link). Then I get the URL of the page selected undet that tab, not the address shown in the browser's address bar.
My module is triggered by the Application.BeginRequest event, and it makes no difference to change it to Application.EndRequest.
Is there anyway to achieve this?
Best Regards
Kristoffer Av Ekenstam