The MapPath method maps the specified relative or virtual path to the corresponding physical directory on the server.

Namespace: DotNetNuke.Common.Utilities
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public virtual string MapPath(
	string path
)
Visual Basic
Public Overridable Function MapPath ( 
	path As String
) As String

Parameters

path
Type: System..::..String
Specifies the relative or virtual path to map to a physical directory. If Path starts with either a forward (/) or backward slash (\), the MapPath method returns a path as if Path were a full, virtual path. If Path doesn't start with a slash, the MapPath method returns a path relative to the directory of the .asp file being processed

Return Value

returnsM:DotNetNuke.Common.Utilities.PathUtils.MapPath(System.String)

Implements

IPathUtils..::..MapPath(String)

Remarks

If path is a null reference (Nothing in Visual Basic), then the MapPath method returns the full physical path of the directory that contains the current application

See Also