Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
PhysicalPath Property

HttpRequest.PhysicalPath Property

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

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

Property Value

The file system path of the current request.

Example

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
    

[C#] 
String Path;
 Path = Request.PhysicalPath;
    

[C++] 
String* Path;
 Path = Request->PhysicalPath;


[JScript] 
var path : String = Request.PhysicalPath
    

Requirements

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

See Also

HttpRequest Class | HttpRequest Members | System.Web Namespace

Show:
© 2015 Microsoft