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

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:
© 2015 Microsoft