Converts Physical Path To Relative Path. Note: Physical Path needs to be under the current Web application's root.

Namespace: MonoSoftware.Web
Assembly: MonoSoftware.Web (in MonoSoftware.Web.dll) Version: 1.0.40.661 (1.0.40.661)

Syntax

C#
public static string ToRelativePath(
	string physicalPath
)
Visual Basic
Public Shared Function ToRelativePath ( 
	physicalPath As String
) As String
Visual C++
public:
static String^ ToRelativePath(
	String^ physicalPath
)
F#
static member ToRelativePath : 
        physicalPath : string -> string 

Parameters

physicalPath
Type: System..::..String
Physical path

Return Value

Type: String
Relative path

See Also