This documentation is archived and is not being maintained.
Page Properties
.NET Framework 1.1
The properties of the Page class are listed here. For a complete list of Page class members, see the Page Members topic.
Public Properties
Application | Gets the Application object for the current Web request. |
Cache | Gets the Cache object associated with the application in which the page resides. |
ClientID (inherited from Control) | Gets the server control identifier generated by ASP.NET. |
ClientTarget | Gets or sets a value that allows you to override automatic detection of browser capabilities and to specify how a page renders for particular browser clients. |
Controls (inherited from Control) | Gets a ControlCollection object that represents the child controls for a specified server control in the UI hierarchy. |
EnableViewState | Overridden. Gets or sets a value indicating whether the page maintains its view state, and the view state of any server controls it contains, when the current page request ends. |
ErrorPage | Gets or sets the error page to which the requesting browser is redirected in the event of an unhandled page exception. |
ID | Overridden. Gets or sets an identifier for a particular instance of the Page class. |
IsPostBack | Gets a value indicating whether the page is being loaded in response to a client postback, or if it is being loaded and accessed for the first time. |
IsValid | Gets a value indicating whether page validation succeeded. |
NamingContainer (inherited from Control) | Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same Control.ID property value. |
Page (inherited from Control) | Gets a reference to the Page instance that contains the server control. |
Parent (inherited from Control) | Gets a reference to the server control's parent control in the page control hierarchy. |
Request | Gets the HttpRequest object for the requested page. |
Response | Gets the HttpResponse object associated with the Page. This object allows you to send HTTP response data to a client and contains information about that response. |
Server | Gets the Server object, which is an instance of the HttpServerUtility class. |
Session | Gets the current Session object provided by ASP.NET. |
Site (inherited from Control) | Gets information about the Web site to which the server control belongs. |
SmartNavigation | Gets or sets a value indicating whether smart navigation is enabled. |
TemplateSourceDirectory (inherited from Control) | Gets the virtual directory of the Page or UserControl that contains the current server control. |
Trace | Gets the TraceContext object for the current Web request. |
UniqueID (inherited from Control) | Gets the unique, hierarchically-qualified identifier for the server control. |
User | Gets information about the user making the page request. |
Validators | Gets a collection of all validation controls contained on the requested page. |
ViewStateUserKey | Assigns an identifier to an individual user in the view state variable associated with the current page. |
Visible | Overridden. Gets or sets a value indicating whether the Page object is rendered. |
Protected Properties
ChildControlsCreated (inherited from Control) | Gets a value that indicates whether the server control's child controls have been created. |
Context | Overridden. Gets the HttpContext object associated with the page. |
Events (inherited from Control) | Gets a list of event handler delegates for the control. This property is read-only. |
HasChildViewState (inherited from Control) | Gets a value indicating whether the current server control's child controls have any saved view-state settings. |
IsTrackingViewState (inherited from Control) | Gets a value that indicates whether the server control is saving changes to its view state. |
ViewState (inherited from Control) | Gets a dictionary of state information that allows you to save and restore the view state of a server control across multiple requests for the same page. |
ViewStateIgnoresCase (inherited from Control) | Gets a value that indicates whether the StateBag object is case-insensitive. |
See Also
Show:
