System.Web.HttpRequest.MapPath Method

Maps the specified virtual path to a physical path.

Syntax

public string MapPath (string virtualPath)

Parameters

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

Returns

The physical path on the server specified by virtualPath.

Remarks

Note:

The HttpRequest.MapPath(string) property potentially contains sensitive information about the hosting environment. The return value should not be displayed to users.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0