System.Web.UI.Page: Method Members

The methods 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 Methods

AddOnPreRenderCompleteAsync(System.Web.BeginEventHandler, System.Web.EndEventHandler)

Registers beginning and ending event handler delegates that do not require state information for an asynchronous page.

AddOnPreRenderCompleteAsync(System.Web.BeginEventHandler, System.Web.EndEventHandler, object)

Registers beginning and ending event handler delegates for an asynchronous page.

static
CreateHtmlTextWriterFromType(System.IO.TextWriter, Type) : HtmlTextWriter

Creates a specified System.Web.UI.HtmlTextWriter object to render the page's content.

DesignerInitialize()

Performs any initialization of the instance of the System.Web.UI.Page class that is required by RAD designers. This method is used only at design time.

ExecuteRegisteredAsyncTasks()

Starts the execution of an asynchronous task.

override
FindControl(string) : Control

Searches the page naming container for a server control with the specified identifier.

GetDataItem() : object

Gets the data item at the top of the data-binding context stack.

GetPostBackClientEvent(Control, string) : string

Gets a reference that can be used in a client event to post back to the server for the specified control and with the specified event arguments.

GetPostBackClientHyperlink(Control, string) : string

Gets a reference, with javascript: appended to the beginning of it, that can be used in a client event to post back to the server for the specified control and with the specified event arguments.

GetPostBackEventReference(Control) : string

Returns a string that can be used in a client event to cause postback to the server. The reference string is defined by the specified System.Web.UI.Control object.

GetPostBackEventReference(Control, string) : string

Returns a string that can be used in a client event to cause postback to the server. The reference string is defined by the specified control that handles the postback and a string argument of additional event information.

GetTypeHashCode() : int

Retrieves a hash code that is generated by System.Web.UI.Page objects that are generated at run time. This hash code is unique to the System.Web.UI.Page object's control hierarchy.

GetValidators(string) : ValidatorCollection

Returns a collection of control validators for a specified validation group.

IsClientScriptBlockRegistered(string) : bool

Determines whether the client script block with the specified key is registered with the page.

IsStartupScriptRegistered(string) : bool

Determines whether the client startup script is registered with the System.Web.UI.Page object.

MapPath(string) : string

Retrieves the physical path that a virtual path, either absolute or relative, or an application-relative path maps to.

ProcessRequest(System.Web.HttpContext)

Sets the intrinsic server objects of the System.Web.UI.Page object, such as the Page.Context, Page.Request, Page.Response, and Page.Application properties.

RegisterArrayDeclaration(string, string)

Declares a value that is declared as an ECMAScript array declaration when the page is rendered.

RegisterAsyncTask(PageAsyncTask)

Registers a new asynchronous task with the page.

RegisterClientScriptBlock(string, string)

Emits client-side script blocks to the response.

RegisterHiddenField(string, string)

Allows server controls to automatically register a hidden field on the form. The field will be sent to the System.Web.UI.Page object when the System.Web.UI.HtmlControls.HtmlForm server control is rendered.

RegisterOnSubmitStatement(string, string)

Allows a page to access the client OnSubmit event. The script should be a function call to client code registered elsewhere.

RegisterRequiresControlState(Control)

Registers a control as one whose control state must be persisted.

RegisterRequiresPostBack(Control)

Registers a control as one that requires postback handling when the page is posted back to the server.

RegisterRequiresRaiseEvent(IPostBackEventHandler)

Registers an ASP.NET server control as one requiring an event to be raised when the control is processed on the System.Web.UI.Page object.

RegisterRequiresViewStateEncryption()

Registers a control with the page as one requiring view-state encryption.

RegisterStartupScript(string, string)

Emits a client-side script block in the page response.

RegisterViewStateHandler()

Causes page view state to be persisted, if called.

RequiresControlState(Control) : bool

Determines whether the specified System.Web.UI.Control object is registered to participate in control state management.

SetFocus(string)

Sets the browser focus to the control with the specified identifier.

SetFocus(Control)

Sets the browser focus to the specified control.

UnregisterRequiresControlState(Control)

Stops persistence of control state for the specified control.

Validate()

Instructs any validation controls included on the page to validate their assigned information.

Validate(string)

Instructs the validation controls in the specified validation group to validate their assigned information.

VerifyRenderingInServerForm(Control)

Confirms that an System.Web.UI.HtmlControls.HtmlForm control is rendered for the specified ASP.NET server control at run time.

Protected Methods

AddContentTemplate(string, ITemplate)

Called during page initialization to create a collection of content (from content controls) that is handed to a master page, if the current page or master page refers to a master page.

AddWrappedFileDependencies(object)

Adds a list of dependent files that make up the current page. This method is used internally by the ASP.NET page framework and is not intended to be used directly from your code.

AspCompatBeginProcessRequest(System.Web.HttpContext, AsyncCallback, object) : IAsyncResult

Initiates a request for Active Server Page (ASP) resources. This method is provided for compatibility with legacy ASP applications.

AspCompatEndProcessRequest(IAsyncResult)

Terminates a request for Active Server Page (ASP) resources. This method is provided for compatibility with legacy ASP applications.

AsyncPageBeginProcessRequest(System.Web.HttpContext, AsyncCallback, object) : IAsyncResult

Begins processing an asynchronous page request.

AsyncPageEndProcessRequest(IAsyncResult)

Ends processing an asynchronous page request.

CreateHtmlTextWriter(System.IO.TextWriter) : HtmlTextWriter

Creates an System.Web.UI.HtmlTextWriter object to render the page's content.

DeterminePostBackMode() : System.Collections.Specialized.NameValueCollection

Returns a System.Collections.Specialized.NameValueCollection of data posted back to the page using either a POST or a GET command.

override
FrameworkInitialize()

Initializes the control tree during page generation based on the declarative nature of the page.

GetWrappedFileDependencies(string[]) : object

Returns a list of physical file names that correspond to a list of virtual file locations.

InitializeCulture()

Sets the Page.Culture and Page.UICulture for the current thread of the page.

InitOutputCache(OutputCacheParameters)

Initializes the output cache for the current page request based on an System.Web.UI.OutputCacheParameters object.

InitOutputCache(int, string, string, OutputCacheLocation, string)

Initializes the output cache for the current page request.

InitOutputCache(int, string, string, string, OutputCacheLocation, string)

Initializes the output cache for the current page request.

LoadPageStateFromPersistenceMedium() : object

Loads any saved view-state information to the System.Web.UI.Page object.

override
OnInit(EventArgs)

Raises the Control.Init event to initialize the page.

OnInitComplete(EventArgs)

Raises the Page.InitComplete event after page initialization.

OnLoadComplete(EventArgs)

Raises the Page.LoadComplete event at the end of the page load stage.

OnPreInit(EventArgs)

Raises the Page.PreInit event at the beginning of page initialization.

OnPreLoad(EventArgs)

Raises the Page.PreLoad event after postback data is loaded into the page server controls but before the Control.OnLoad(EventArgs) event.

OnPreRenderComplete(EventArgs)

Raises the Page.PreRenderComplete event after the Page.OnPreRenderComplete(EventArgs) event and before the page is rendered.

OnSaveStateComplete(EventArgs)

Raises the Page.SaveStateComplete event after the page state has been saved to the persistence medium.

RaisePostBackEvent(IPostBackEventHandler, string)

Notifies the server control that caused the postback that it should handle an incoming postback event.

override
Render(HtmlTextWriter)

Initializes the System.Web.UI.HtmlTextWriter object and calls on the child controls of the System.Web.UI.Page to render.

SavePageStateToPersistenceMedium(object)

Saves any view-state and control-state information for the page.