System.Web.HttpRequest.FilePath Property

Gets the virtual path of the current request.

Syntax

public string FilePath { get; }

Value

The path as a string

Remarks

The HttpRequest.FilePath property does not include the HttpRequest.PathInfo trailer. For example, for the URL http://www.contoso.com/virdir/page.html/tail, the HttpRequest.FilePath value is /virdir/page.html.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0