Tuesday, July 20, 2010

dotNet URL

Using the HTTP Request object from the current HTTP context, can return a few different URL path.

To retrieve just the URL without the query string variables, use
RequestObject.CurrentExecutionFilePath

To retrieve the entire URL with query string variables, use
RequestObject.RawURL

There are other important bits that we can use too.

No comments:

Post a Comment