Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

WebUtils.GetRelativePath Method

Gets the virtual path portion of the given absolute URL relative to the given base path.

[Visual Basic]
Public Shared Sub GetRelativePath( _
   ByVal basePath As String, _
   ByVal url As String _
)
[C#]
public static string GetRelativePath(
   string basePath,
   string url
);

Parameters

basePath
the absolute base path
url
the absolute url

Return Value

the url relative to the given basePath

Remarks

Base path comparison is done case insensitive.

See Also

WebUtils Class | Spring.Util Namespace