This documentation is archived and is not being maintained.

HttpRequest.MapPath Method

Maps the virtual path in the requested URL to a physical path on the server for the current request.

Overload List

Maps the specified virtual path to a physical path.

[Visual Basic] Overloads Public Function MapPath(String) As String
[C#] public string MapPath(string);
[C++] public: String* MapPath(String*);
[JScript] public function MapPath(String) : String;

Maps the specified virtual path to a physical path.

[Visual Basic] Overloads Public Function MapPath(String, String, Boolean) As String
[C#] public string MapPath(string, string, bool);
[C++] public: String* MapPath(String*, String*, bool);
[JScript] public function MapPath(String, String, Boolean) : String;

See Also

HttpRequest Class | HttpRequest Members | System.Web Namespace

Show: