Content page url

Content page url

This question is answered

I've got a .NET widget in which I need to know the URL which the user has browsed to.  When I try the usual techniques (i.e. Request.ServerVariables["PATH_INFO"]) I get the generic ../CustomPage.aspx.  Is there a way to get the user-facing URL that they see in their browser's address bar?

Thank you!

Verified Answer
  • I found my own answer, if it's useful to anyone else.  From .NET (C#), just grab Request.RawUrl.  Everything else seems to pull the address to the generic CustomPage.aspx.

All Replies
  • I found my own answer, if it's useful to anyone else.  From .NET (C#), just grab Request.RawUrl.  Everything else seems to pull the address to the generic CustomPage.aspx.