System.Web.UI.Page: Property Members

The properties of System.Web.UI.Page are listed below. For a list of all members, see the Page Members list.

See Also: Inherited members from System.Web.UI.TemplateControl

Public Properties

[read-only]
ApplicationSystem.Web.HttpApplicationState.

Gets the System.Web.HttpApplicationState object for the current Web request.

AsyncTimeoutTimeSpan.

Gets or sets a value indicating the time-out interval used when processing asynchronous tasks.

Bufferbool.

Sets a value indicating whether the page output is buffered.

[read-only]
CacheSystem.Web.Caching.Cache.

Gets the System.Web.Caching.Cache object associated with the application in which the page resides.

[read-only]
ClientQueryStringstring.

Gets the query string portion of the requested URL.

[read-only]
ClientScriptClientScriptManager.

Gets a System.Web.UI.ClientScriptManager object used to manage, register, and add script to the page.

ClientTargetstring.

Gets or sets a value that allows you to override automatic detection of browser capabilities and to specify how a page is rendered for particular browser clients.

CodePageint.

Sets the code page identifier for the current System.Web.UI.Page.

ContentTypestring.

Sets the HTTP MIME type for the System.Web.HttpResponse object associated with the page.

Culturestring.

Sets the culture ID for the System.Threading.Thread object associated with the page.

EnableEventValidationbool.

Gets or sets a value indicating whether the page validates postback and callback events.

override
EnableViewStatebool.

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.

EnableViewStateMacbool.

Gets or sets a value indicating whether ASP.NET should check message authentication codes (MAC) in the page's view state when the page is posted back from the client.

ErrorPagestring.

Gets or sets the error page to which the requesting browser is redirected in the event of an unhandled page exception.

[read-only]
FormSystem.Web.UI.HtmlControls.HtmlForm.

Gets the HTML form for the page.

[read-only]
HeaderSystem.Web.UI.HtmlControls.HtmlHead.

Gets the document header for the page if the head element is defined with a runat=server in the page declaration.

override
IDstring.

Gets or sets an identifier for a particular instance of the System.Web.UI.Page class.

[read-only]
IdSeparatorchar.

Gets the character used to separate control identifiers when building a unique ID for a control on a page.

[read-only]
IsAsyncbool.

Gets a value indicating whether the page is processed asynchronously.

[read-only]
IsCallbackbool.

Gets a value that indicates whether the page request is the result of a callback.

[read-only]
IsCrossPagePostBackbool.

Gets a value indicating whether the page is involved in a cross-page postback.

[read-only]
IsPostBackbool.

Gets a value that indicates whether the page is being rendered for the first time or is being loaded in response to a postback.

[read-only]
IsReusablebool.

Gets a value indicating whether the System.Web.UI.Page object can be reused.

[read-only]
IsValidbool.

Gets a value indicating whether page validation succeeded.

[read-only]
ItemsIDictionary.

Gets a list of objects stored in the page context.

LCIDint.

Sets the locale identifier for the System.Threading.Thread object associated with the page.

MaintainScrollPositionOnPostBackbool.

Gets or sets a value indicating whether to return the user to the same position in the client browser after postback. This property replaces the obsolete Page.SmartNavigation property.

[read-only]
MasterMasterPage.

Gets the master page that determines the overall look of the page.

MasterPageFilestring.

Gets or sets the virtual path of the master page.

MaxPageStateFieldLengthint.

Gets or sets the maximum length for the page's state field.

[read-only]
PageAdapterSystem.Web.UI.Adapters.PageAdapter.

Gets the adapter that renders the page for the specific requesting browser.

[read-only]
PreviousPagePage.

Gets the page that transferred control to the current page.

[read-only]
RequestSystem.Web.HttpRequest.

Gets the System.Web.HttpRequest object for the requested page.

[read-only]
ResponseSystem.Web.HttpResponse.

Gets the System.Web.HttpResponse object associated with the System.Web.UI.Page object. This object allows you to send HTTP response data to a client and contains information about that response.

ResponseEncodingstring.

Sets the encoding language for the current System.Web.HttpResponse object.

[read-only]
ServerSystem.Web.HttpServerUtility.

Gets the Server object, which is an instance of the System.Web.HttpServerUtility class.

[read-only]
SessionSystem.Web.SessionState.HttpSessionState.

Gets the current Session object provided by ASP.NET.

SmartNavigationbool.

Gets or sets a value indicating whether smart navigation is enabled. This property is deprecated.

StyleSheetThemestring.

Gets or sets the name of the theme that is applied to the page early in the page life cycle.

Themestring.

Gets or sets the name of the page theme.

Titlestring.

Gets or sets the title for the page.

[read-only]
TraceSystem.Web.TraceContext.

Gets the System.Web.TraceContext object for the current Web request.

TraceEnabledbool.

Sets a value indicating whether tracing is enabled for the System.Web.UI.Page object.

TraceModeValueSystem.Web.TraceMode.

Sets the mode in which trace statements are displayed on the page.

UICulturestring.

Sets the user interface (UI) ID for the System.Threading.Thread object associated with the page.

[read-only]
UserSystem.Security.Principal.IPrincipal.

Gets information about the user making the page request.

[read-only]
ValidatorsValidatorCollection.

Gets a collection of all validation controls contained on the requested page.

ViewStateEncryptionModeViewStateEncryptionMode.

Gets or sets the encryption mode of the view state.

ViewStateUserKeystring.

Assigns an identifier to an individual user in the view-state variable associated with the current page.

override
Visiblebool.

Gets or sets a value indicating whether the System.Web.UI.Page object is rendered.

Protected Properties

AspCompatModebool.

Sets a value indicating whether the page can be executed on a single-threaded apartment (STA) thread.

AsyncModebool.

Sets a value indicating whether the page is processed synchronously or asynchronously.

[read-only]
override
ContextSystem.Web.HttpContext.

Gets the System.Web.HttpContext object associated with the page.

[write-only]
FileDependenciesArrayList.

Sets an array of files that the current System.Web.HttpResponse object is dependent upon.

[read-only]
PageStatePersisterPageStatePersister.

Gets the System.Web.UI.PageStatePersister object associated with the page.

TransactionModeint.

Sets the level of transaction support for the page.

[read-only]
UniqueFilePathSuffixstring.

Gets a unique suffix to append to the file path for caching browsers.