Export (0) Print
Expand All
0 out of 5 rated this helpful - Rate this topic

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
   System.Web.UI.Control
      System.Web.UI.TemplateControl
         System.Web.UI.Page

[Visual Basic]
Public Class Page
   Inherits TemplateControl
   Implements IHttpHandler
[C#]
public class Page : TemplateControl, IHttpHandler
[C++]
public __gc class Page : public TemplateControl, IHttpHandler
[JScript]
public class Page extends TemplateControl implements IHttpHandler

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any 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.

If you want to create a Web Forms page using the code-behind technique, derive from this class. Rapid application development (RAD) designers, such as Visual Studio .NET, automatically use this model to create Web Forms pages.

The Page object serves as the naming container for all server controls in a page, except those that implement the INamingContainer interface, or are children of controls that implement this interface.

Requirements

Namespace: System.Web.UI

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

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

See Also

Page Members | System.Web.UI Namespace | Control | TemplateControl | UserControl | @ Page

Show:
© 2014 Microsoft. All rights reserved.