asp.net.ph

Request.MapPath Method ( String )

System.Web Namespace   HttpRequest Class


Maps the specified virtual path to a physical path.

[ VB ]
Overloads Public Function MapPath ( _
   ByVal virtualPath As String _
) As String

[ C# ]
public string MapPath (
   string virtualPath
);

[ C++ ]
public: String* MapPath (
   String* virtualPath
);

[ JScript ]
public function MapPath (
   virtualPath : String
) : String;

Parameters

virtualPath
The virtual path ( absolute or relative ) for the current request.

Return Value

The physical path on the server specified by virtualPath.

Exceptions


Exception Type Condition
HttpException Occurs when Attempted to map the path when there is no HttpContext object defined for the request.

See Also

HttpRequest Class   HttpRequest.MapPath Overload List Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph