Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

WebUtils.CreateAbsolutePath Method

Returns absolute path that can be referenced within plain HTML.

[Visual Basic]
Public Shared Sub CreateAbsolutePath( _
   ByVal applicationPath As String, _
   ByVal relativePath As String _
public static string CreateAbsolutePath(
   string applicationPath,
   string relativePath


Application path.
Relative path to combine with the application path.

Return Value

Absolute path.


If relative path starts with '/' (forward slash), no concatenation will occur and it will be assumed that the relative path specified is indeed the absolute path and will be returned verbatim.

Otherwise, relative path will be appended to the application path, while making sure that path separators are not duplicated between the paths.

See Also

WebUtils Class | Spring.Util Namespace