System.Web.UI.WebControls.ListControl.SaveViewState Method

Saves the current view state of the System.Web.UI.WebControls.ListControl -derived control and the items it contains.

Syntax

protected override object SaveViewState ()

Returns

An object that contains the saved state of the System.Web.UI.WebControls.ListControl control.

Remarks

The DetailsView.SaveViewState method is a helper method called by the System.Web.UI.WebControls.ListControl control to save the state of the control.

Note:

This method is used primarily by control developers when extending the System.Web.UI.WebControls.ListControl control.

Requirements

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