Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

Page Class

Represents an .aspx file, also known as a Web Forms page, requested from a server that hosts an ASP.NET Web application.

For a list of all members of this type, see Page Members .

System.Object
   Control
      TemplateControl
         Page
            Page
               AbstractWizard

[Visual Basic]
<AspNetHostingPermission(Level:=AspNetHostingPermissionLevel.Minimal, Action:=SecurityAction.InheritanceDemand, Unrestricted:=False)> _
<AspNetHostingPermission(Level:=AspNetHostingPermissionLevel.Minimal, Action:=SecurityAction.LinkDemand, Unrestricted:=False)> _
<DefaultEvent(Name:="Load")> _
<Designer(DesignerBaseTypeName:="System.ComponentModel.Design.IRootDesigner, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", DesignerTypeName:="Microsoft.VisualStudio.Web.WebForms.WebFormDesigner, Microsoft.VisualStudio.Web, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")> _
<DesignerCategory(Category:="ASPXCodeBehind")> _
<DesignerSerializer(SerializerTypeName:="Microsoft.VisualStudio.Web.WebForms.WebFormCodeDomSerializer, Microsoft.VisualStudio.Web, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", SerializerBaseTypeName:="System.ComponentModel.Design.Serialization.TypeCodeDomSerializer, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")> _
<ToolboxItem(ToolboxItemType:=null)> _
<Bindable(Bindable:=True, Direction:=BindingDirection.OneWay)> _
<DefaultProperty(Name:="ID")> _
<Designer(DesignerBaseTypeName:="System.ComponentModel.Design.IDesigner", DesignerTypeName:="System.Web.UI.Design.ControlDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")> _
<DesignerSerializer(SerializerTypeName:="Microsoft.VisualStudio.Web.WebForms.ControlCodeDomSerializer, Microsoft.VisualStudio.Web, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", SerializerBaseTypeName:="System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")> _
<Themeable(Themeable:=False)> _
<ToolboxItemFilter(FilterString:="System.Web.UI", FilterType:=ToolboxItemFilterType.Require)> _
Public Class Page
    Inherits Page
    Implements IApplicationContextAware, ISharedStateAware, ISupportsWebDependencyInjection, IWebDataBound, IDataBound, IValidationContainer, IWebNavigable
[C#]
[AspNetHostingPermission(Level=AspNetHostingPermissionLevel.Minimal, Action=SecurityAction.InheritanceDemand, Unrestricted=False)]
[AspNetHostingPermission(Level=AspNetHostingPermissionLevel.Minimal, Action=SecurityAction.LinkDemand, Unrestricted=False)]
[DefaultEvent(Name="Load")]
[Designer(DesignerBaseTypeName="System.ComponentModel.Design.IRootDesigner, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", DesignerTypeName="Microsoft.VisualStudio.Web.WebForms.WebFormDesigner, Microsoft.VisualStudio.Web, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[DesignerCategory(Category="ASPXCodeBehind")]
[DesignerSerializer(SerializerTypeName="Microsoft.VisualStudio.Web.WebForms.WebFormCodeDomSerializer, Microsoft.VisualStudio.Web, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", SerializerBaseTypeName="System.ComponentModel.Design.Serialization.TypeCodeDomSerializer, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[ToolboxItem(ToolboxItemType=null)]
[Bindable(Bindable=True, Direction=BindingDirection.OneWay)]
[DefaultProperty(Name="ID")]
[Designer(DesignerBaseTypeName="System.ComponentModel.Design.IDesigner", DesignerTypeName="System.Web.UI.Design.ControlDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[DesignerSerializer(SerializerTypeName="Microsoft.VisualStudio.Web.WebForms.ControlCodeDomSerializer, Microsoft.VisualStudio.Web, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", SerializerBaseTypeName="System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[Themeable(Themeable=False)]
[ToolboxItemFilter(FilterString="System.Web.UI", FilterType=ToolboxItemFilterType.Require)]
public class Page : Page, IApplicationContextAware, ISharedStateAware, ISupportsWebDependencyInjection, IWebDataBound, IDataBound, IValidationContainer, IWebNavigable

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

The Page class is associated with files that have an .aspx extension. These files are compiled at run time as Page objects and cached in server memory.

This class extends Page and adds support for master pages similar to upcoming ASP.Net 2.0 master pages feature.

It also adds support for automatic localization using local page resource file, and simplifies access to global resources (resources from the message source for the application context).

Requirements

Namespace: Spring.Web.UI

Assembly: Spring.Web (in Spring.Web.dll)

See Also

Page Members | Spring.Web.UI Namespace