Page Class
Collapse the table of content
Expand the table of content

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.


[Visual Basic]
Public Class Page
   Inherits TemplateControl
   Implements IHttpHandler
public class Page : TemplateControl, IHttpHandler
public __gc class Page : public TemplateControl, IHttpHandler
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.


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.


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

© 2015 Microsoft