Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

WebUtils.GetPageName Method

Extracts the bare ASPX page name without any extension from the supplied url.

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

Parameters

url
The full URL to the ASPX page.

Return Value

The bare ASPX page name without any extension.

Exceptions

Exception Type Condition
ArgumentNullException If the supplied url is a null reference (Nothing in Visual Basic) or contains only whitespace character(s).

Example

Examples of what would be returned from this method given a url would be:

See Also

WebUtils Class | Spring.Util Namespace