System.Web.UI.UserControl.SaveViewState Method

Saves any user control view-state changes that have occurred since the last page postback.

Syntax

protected override object SaveViewState ()

Returns

Returns the user control's current view state. If there is no view state associated with the control, it returns null.

Remarks

In general, you do not need to call this method. However, if you store custom information in view state, you can override this method to do so.

Requirements

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