Export (0) Print
Expand All

Page Properties

The properties of the Page class are listed here. For a complete list of Page class members, see the Page Members topic.

Public Properties

public propertyApplication Gets the Application object for the current Web request.
public propertyCache Gets the Cache object associated with the application in which the page resides.
public propertyClientID (inherited from Control) Gets the server control identifier generated by ASP.NET.
public propertyClientTarget 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.
public propertyControls (inherited from Control) Gets a ControlCollection object that represents the child controls for a specified server control in the UI hierarchy.
public propertyEnableViewState 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.
public propertyErrorPage Gets or sets the error page to which the requesting browser is redirected in the event of an unhandled page exception.
public propertyID Overridden. Gets or sets an identifier for a particular instance of the Page class.
public propertyIsPostBack 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.
public propertyIsValid Gets a value indicating whether page validation succeeded.
public propertyNamingContainer (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.
public propertyPage (inherited from Control) Gets a reference to the Page instance that contains the server control.
public propertyParent (inherited from Control) Gets a reference to the server control's parent control in the page control hierarchy.
public propertyRequest Gets the HttpRequest object for the requested page.
public propertyResponse 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.
public propertyServer Gets the Server object, which is an instance of the HttpServerUtility class.
public propertySession Gets the current Session object provided by ASP.NET.
public propertySite (inherited from Control) Gets information about the Web site to which the server control belongs.
public propertySmartNavigation Gets or sets a value indicating whether smart navigation is enabled.
public propertyTemplateSourceDirectory (inherited from Control) Gets the virtual directory of the Page or UserControl that contains the current server control.
public propertyTrace Gets the TraceContext object for the current Web request.
public propertyUniqueID (inherited from Control) Gets the unique, hierarchically-qualified identifier for the server control.
public propertyUser Gets information about the user making the page request.
public propertyValidators Gets a collection of all validation controls contained on the requested page.
public propertyViewStateUserKey Assigns an identifier to an individual user in the view state variable associated with the current page.
public propertyVisible Overridden. Gets or sets a value indicating whether the Page object is rendered.

Protected Properties

protected propertyChildControlsCreated (inherited from Control) Gets a value that indicates whether the server control's child controls have been created.
protected propertyContext Overridden. Gets the HttpContext object associated with the page.
protected propertyEvents (inherited from Control) Gets a list of event handler delegates for the control. This property is read-only.
protected propertyHasChildViewState (inherited from Control) Gets a value indicating whether the current server control's child controls have any saved view-state settings.
protected propertyIsTrackingViewState (inherited from Control) Gets a value that indicates whether the server control is saving changes to its view state.
protected propertyViewState (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.
protected propertyViewStateIgnoresCase (inherited from Control) Gets a value that indicates whether the StateBag object is case-insensitive.

See Also

Page Class | System.Web.UI Namespace

Show:
© 2014 Microsoft