System.Web.UI.Page.RegisterViewStateHandler Method

Causes page view state to be persisted, if called.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
public void RegisterViewStateHandler ()

Remarks

The Page.RegisterViewStateHandler method is automatically called through the System.Web.UI.HtmlControls.HtmlForm server control. If this method is not invoked, the page view state will not be persisted.

Note:

Typically, only the System.Web.UI.HtmlControls.HtmlForm server control for the page calls this method.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0