Shunde.NET Framework Class Library

WebPage Methods

The methods of the WebPage class are listed below. For a complete list of WebPage class members, see the WebPage Members topic.

Public Instance Methods

AddOnPreRenderCompleteAsync (inherited from Page)Overloaded. Registers beginning and ending event handler delegates that do not require state information for an asynchronous page.
ApplyStyleSheetSkin (inherited from Control)Applies the style properties defined in the page style sheet to the control.
DataBind (inherited from Control)Overloaded. Binds a data source to the invoked server control and all its child controls.
DesignerInitialize (inherited from Page)Performs any initialization of the instance of the Page class that is required by RAD designers. This method is used only at design time.
Dispose (inherited from Control)Enables a server control to perform final clean up before it is released from memory.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
ExecuteRegisteredAsyncTasks (inherited from Page)Starts the execution of an asynchronous task.
FindControl (inherited from Page)Overloaded. Searches the page naming container for a server control with the specified identifier.
Focus (inherited from Control)Sets input focus to a control.
GetDataItem (inherited from Page)Gets the data item at the top of the data-binding context stack.
GetDoubleParamGets a double from the querystring. Returns -1 if the param does not exist or is in an incorrect format
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetIntParamGets an int from the querystring. Returns -1 if the param does not exist or is in an incorrect format
GetPostBackClientEvent (inherited from Page)Obsolete. 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 (inherited from Page)Obsolete. 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 (inherited from Page)Overloaded. 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 object.
GetStringParamGets a string from the querystring. Returns an empty string if the param does not exist
GetTextSectionGets some text with the given Code
GetType (inherited from Object)Gets the Type of the current instance.
GetTypeHashCode (inherited from Page)Retrieves a hash code that is generated by Page objects that are generated at run time. This hash code is unique to the Page object's control hierarchy.
GetValidators (inherited from Page)Returns a collection of control validators for a specified validation group.
HandleExceptionHandles any exceptions that occur on the site
HasControls (inherited from Control)Determines if the server control contains any child controls.
IsClientScriptBlockRegistered (inherited from Page)Obsolete. Determines whether the client script block with the specified key is registered with the page.
IsStartupScriptRegistered (inherited from Page)Obsolete. Determines whether the client startup script is registered with the Page object.
LoadControl (inherited from TemplateControl)Overloaded. Loads a Control object from a file based on a specified virtual path.
LoadTemplate (inherited from TemplateControl)Obtains an instance of the ITemplate interface from an external file.
MapPath (inherited from Page)Retrieves the physical path that a virtual path, either absolute or relative, or an application-relative path maps to.
Page_ErrorGets called whenever there is a page error
Page_InitCalled when the page loads
Page_LoadCalled when the page loads
Page_UnloadCalled when the page un-loads
ParseControl (inherited from TemplateControl)Parses an input string into a Control object on the Web Forms page or user control.
ProcessRequest (inherited from Page)Sets the intrinsics of the Page, such as the Context, Request, Response, and Application properties.
ReadStringResource (inherited from TemplateControl)Reads a string resource. The ReadStringResource method is not intended for use from within your code.
RedirectRedirets to the given URL (absolute or relative)
RegisterArrayDeclaration (inherited from Page)Obsolete. Declares a value that is declared as an ECMAScript array declaration when the page is rendered.
RegisterAsyncTask (inherited from Page)Registers a new asynchronous task with the page.
RegisterClientScriptBlock (inherited from Page)Obsolete. Emits client-side script blocks to the response.
RegisterHiddenField (inherited from Page)Obsolete. Allows server controls to automatically register a hidden field on the form. The field will be sent to the Page object when the HtmlForm server control is rendered.
RegisterOnSubmitStatement (inherited from Page)Obsolete. Allows a page to access the client OnSubmit event. The script should be a function call to client code registered elsewhere.
RegisterRequiresControlState (inherited from Page)Registers a control as one whose control state must be persisted.
RegisterRequiresPostBack (inherited from Page)Registers a control as one that requires postback handling when the page is posted back to the server.
RegisterRequiresRaiseEvent (inherited from Page)Registers an ASP.NET server control as one requiring an event to be raised when the control is processed on the Page object.
RegisterRequiresViewStateEncryption (inherited from Page)Registers a control with the page as one requiring view-state encryption.
RegisterStartupScript (inherited from Page)Obsolete. Emits a client-side script block in the page response.
RegisterViewStateHandler (inherited from Page)Causes page view state to be persisted, if called.
RemoveCacheOverloaded. Removes all the cached objects
RenderControl (inherited from Control)Overloaded. Outputs server control content to a provided HtmlTextWriter object and stores tracing information about the control if tracing is enabled.
RequiresControlState (inherited from Page)Determines whether the specified Control object is registered to participate in control state management.
ResolveClientUrl (inherited from Control)Gets a URL that can be used by the browser.
ResolveUrl (inherited from Control)Converts a URL into one that is usable on the requesting client.
SetFocus (inherited from Page)Overloaded. Sets the browser focus to the specified control.
SetRenderMethodDelegate (inherited from Control)Assigns an event handler delegate to render the server control and its content into its parent control.
TestDeviceFilter (inherited from TemplateControl)Returns a Boolean value indicating whether a device filter applies to the HTTP request.
ToString (inherited from Object)Returns a String that represents the current Object.
UnregisterRequiresControlState (inherited from Page)Stops persistence of control state for the specified control.
Validate (inherited from Page)Overloaded. Instructs any validation controls included on the page to validate their assigned information.
VerifyRenderingInServerForm (inherited from Page)Confirms that an HtmlForm control is rendered for the specified ASP.NET server control at run time.

Protected Instance Methods

AddParsedSubObject (inherited from Control)Notifies the server control that an element, either XML or HTML, was parsed, and adds the element to the server control's ControlCollection object.
AspCompatBeginProcessRequest (inherited from Page)Initiates a request for Active Server Page (ASP) resources. This method is provided for compatibility with legacy ASP applications.
AspCompatEndProcessRequest (inherited from Page)Terminates a request for Active Server Page (ASP) resources. This method is provided for compatibility with legacy ASP applications.
AsyncPageBeginProcessRequest (inherited from Page)Begins processing an asynchronous page request.
AsyncPageEndProcessRequest (inherited from Page)Ends processing an asynchronous page request.
BuildProfileTree (inherited from Control)Gathers information about the server control and delivers it to the Trace property to be displayed when tracing is enabled for the page.
ClearChildControlState (inherited from Control)Deletes the control-state information for the server control's child controls.
ClearChildState (inherited from Control)Deletes the view-state and control-state information for all the server control's child controls.
ClearChildViewState (inherited from Control)Deletes the view-state information for all the server control's child controls.
Construct (inherited from TemplateControl)Performs design-time logic.
CreateControlCollection (inherited from Control)Creates a new ControlCollection object to hold the child controls (both literal and server) of the server control.
CreateResourceBasedLiteralControl (inherited from TemplateControl)Accesses literal strings stored in a resource. The CreateResourceBasedLiteralControl method is not intended for use from within your code.
DataBind (inherited from Control)Overloaded. Binds a data source to the invoked server control and all its child controls with an option to raise the DataBinding event.
DataBindChildren (inherited from Control)Binds a data source to the server control's child controls.
EnsureChildControls (inherited from Control)Determines whether the server control contains child controls. If it does not, it creates child controls.
EnsureID (inherited from Control)Creates an identifier for controls that do not have an identifier assigned.
Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
FindControl (inherited from Control)Overloaded. Searches the current naming container for a server control with the specified id and an integer, specified in the pathOffset parameter, which aids in the search. You should not override this version of the FindControl method.
FrameworkInitialize (inherited from Page)Initializes the control tree during page generation based on the declarative nature of the page.
GetDesignModeState (inherited from Control)Gets design-time data for a control.
GetGlobalResourceObject (inherited from TemplateControl)Overloaded. Gets an application-level resource object based on the specified ClassKey and ResourceKey properties.
GetLocalResourceObject (inherited from TemplateControl)Overloaded. Gets a page-level resource object based on the specified ResourceKey property.
GetWrappedFileDependencies (inherited from Page)Returns a list of physical file names that correspond to a list of virtual file locations.
HasEvents (inherited from Control)Returns a value indicating whether events are registered for the control or any child controls.
InitializeCulture (inherited from Page)Sets the Culture and UICulture for the current thread of the page.
InitOutputCache (inherited from Page)Overloaded. Initializes the output cache for the current page request.
IsLiteralContent (inherited from Control)Determines if the server control holds only literal content.
LoadViewState (inherited from Control)Restores view-state information from a previous page request that was saved by the SaveViewState method.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
OnAbortTransaction (inherited from TemplateControl)Raises the AbortTransaction event.
OnBubbleEvent (inherited from Control)Determines whether the event for the server control is passed up the page's UI server control hierarchy.
OnCommitTransaction (inherited from TemplateControl)Raises the CommitTransaction event.
OnDataBinding (inherited from Control)Raises the DataBinding event.
OnError (inherited from TemplateControl)Raises the Error event.
OnInitComplete (inherited from Page)Raises the InitComplete event after page initialization.
OnLoadComplete (inherited from Page)Raises the LoadComplete event at the end of the page load stage.
OnPreInit (inherited from Page)Raises the PreInit event at the beginning of page initialization.
OnPreLoad (inherited from Page)Raises the PreLoad event after postback data is loaded into the page server controls but before the OnLoad event.
OnPreRenderComplete (inherited from Page)Raises the PreRenderComplete event after the OnPreRenderComplete event and before the page is rendered.
OnSaveStateComplete (inherited from Page)Raises the SaveStateComplete event after the page state has been saved to the persistence medium.
RaiseBubbleEvent (inherited from Control)Assigns any sources of the event and its information to the control's parent.
RaisePostBackEvent (inherited from Page)Notifies the server control that caused the postback that it should handle an incoming postback event.
RenderControl (inherited from Control)Overloaded. Outputs server control content to a provided HtmlTextWriter object using a provided ControlAdapter object.
ResolveAdapter (inherited from Control)Gets the control adapter responsible for rendering the specified control.
SaveViewState (inherited from Control)Saves any server control view-state changes that have occurred since the time the page was posted back to the server.
SetDesignModeState (inherited from Control)Sets design-time data for a control.
SetStringResourcePointer (inherited from TemplateControl)Sets a pointer to a string resource. The SetStringResourcePointer method is used by generated classes and is not intended for use from within your code.
TrackViewState (inherited from Control)Causes tracking of view-state changes to the server control so they can be stored in the server control's StateBag object. This object is accessible through the ViewState property.
WriteUTF8ResourceString (inherited from TemplateControl)Writes a resource string to an HtmlTextWriter control. The WriteUTF8ResourceString method is used by generated classes and is not intended for use from within your code.

Protected Internal Instance Methods

AddContentTemplate (inherited from Page)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.
AddedControl (inherited from Control)Called after a child control is added to the Controls collection of the Control object.
AddWrappedFileDependencies (inherited from Page)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.
CreateChildControls (inherited from Control)Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.
CreateHtmlTextWriter (inherited from Page)Creates an HtmlTextWriter object to render the page's content.
DeterminePostBackMode (inherited from Page)Returns a NameValueCollection of data posted back to the page using either a POST or a GET command.
Eval (inherited from TemplateControl)Overloaded. Evaluates a data-binding expression.
InitOutputCache (inherited from Page)Overloaded. Initializes the output cache for the current page request based on an OutputCacheParameters object.
LoadControlState (inherited from Control)Restores control-state information from a previous page request that was saved by the SaveControlState method.
LoadPageStateFromPersistenceMedium (inherited from Page)Loads any saved view-state information to the Page object.
MapPathSecure (inherited from Control)Retrieves the physical path that a virtual path, either absolute or relative, maps to.
OnInit (inherited from Page)Raises the Init event to initialize the page.
OnLoad (inherited from Control)Raises the Load event.
OnPreRender (inherited from Control)Raises the PreRender event.
OnUnload (inherited from Control)Raises the Unload event.
OpenFile (inherited from Control)Gets a Stream used to read a file.
RemovedControl (inherited from Control)Called after a control is removed from the Controls collection of another control.
Render (inherited from Page)Initializes the HtmlTextWriter object and calls on the child controls of the Page to render.
RenderChildren (inherited from Control)Outputs the content of a server control's children to a provided HtmlTextWriter object, which writes the content to be rendered on the client.
SaveControlState (inherited from Control)Saves any server control state changes that have occurred since the time the page was posted back to the server.
SavePageStateToPersistenceMedium (inherited from Page)Saves any view-state and control-state information for the page.
XPath (inherited from TemplateControl)Overloaded. Evaluates an XPath data-binding expression.
XPathSelect (inherited from TemplateControl)Overloaded. Evaluates an XPath data-binding expression and returns a node collection that implements the IEnumerable interface.

See Also

WebPage Class | Shunde.Common Namespace