How to Get Paths and URL fragments from the HttpRequest object
Posted by jpluimers on 2011/05/12
There are many ASP.NET HttpRequest properties.
Sadly, the MSDN documentation does not have many examples telling you which property maps to which portion of the URL.
So it usually is a big fight extracting the sub portions you need.
Luckily, Steve Lautenschlager has the How Do I Get Paths and URL fragments from the HttpRequest object? article online.
The article has a table with the properties and portions of the URL that end up in those properties.
Really neat, as it saves a lot of time.
–jeroen






Leave a comment