Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

WebObjectUtils.CreatePageInstance Method

Creates an instance of the ASPX page referred to by the supplied pageUrl.

[Visual Basic]
Public Shared Sub CreatePageInstance( _
   ByVal pageUrl As String _
public static IHttpHandler CreatePageInstance(
   string pageUrl


The URL of the ASPX page.

Return Value

Page instance.


Exception Type Condition
ObjectCreationException If this method is not called in the scope of an active web session (i.e. the implementation this method depends on this code executing in the environs of a running web server such as IIS); or if the page could not be instantiated (for whatever reason, such as the ASPX pageUrl not actually existing).

See Also

WebObjectUtils Class | Spring.Objects.Factory.Support Namespace