This documentation is archived and is not being maintained.

HttpRequest.PhysicalPath Property

Gets the physical file system path corresponding to the requested URL.

[Visual Basic]
Public ReadOnly Property PhysicalPath As String
public string PhysicalPath {get;}
public: __property String* get_PhysicalPath();
public function get PhysicalPath() : String;

Property Value

The file system path of the current request.


The following example assigns the actual file system path for the current URL request to a string variable.

[Visual Basic] 
Dim Path As String
 Path = Request.PhysicalPath

String Path;
 Path = Request.PhysicalPath;

String* Path;
 Path = Request->PhysicalPath;

var path : String = Request.PhysicalPath


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpRequest Class | HttpRequest Members | System.Web Namespace