System.Web.UI.Control.SaveControlState Method

Saves any server control state changes that have occurred since the time the page was posted back to the server.

Syntax

protected virtual object SaveControlState ()

Returns

Returns the server control's current state. If there is no state associated with the control, this method returns null.

Remarks

Use the Control.SaveControlState method to save state information required for the operation of a specific control. This control-state data is stored separately from the control's view-state data.

Custom controls using control state must call the Page.RegisterRequiresControlState(Control) method on the Control.Page before saving control state.

Requirements

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