WebUtils.GetAppRelativePath

Translates an ASP.NET path like /myapp/subdir/page.aspx into an application relative path: subdir/page.aspx. The path returned is based of the application base and starts either with a subdirectory or page name (ie. no ~)

The path is turned into all lower case.

public static string GetAppRelativePath(string logicalPath)

Return Value

Application relative path (ie. subdir/page.aspx)

Parameters

logicalPath
A logical, server root relative path (ie. /myapp/subdir/page.aspx)

Overloads:


See also:

Class WebUtils

© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic