HttpRequest.PathInfo Property
.NET Framework (current version)
Gets the additional path information for a resource with a URL extension.
Assembly: System.Web (in System.Web.dll)
For the URL Http://www.contoso.com/virdir/page.html/tail, the PathInfo value is /tail.
The following code example determines whether the PathInfo property contains an empty string. If it does, the Write method writes a string indicating this to a file. If it does not, the HtmlEncode method HTML-encodes the value of the PathInfo property and the WriteLine method writes the encoded value to the file. This code example is part of a larger example provided for the HttpRequest class.
.NET Framework
Available since 1.1
Available since 1.1
Show: