System.Web.UI.WebControls.DetailsView.SaveControlState Method

Saves the state of the properties in the System.Web.UI.WebControls.DetailsView control that need to be persisted, even when the System.Web.UI.Control.EnableViewState property is set to false.

Syntax

protected override object SaveControlState ()

Returns

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

Remarks

This method is used to save the state of the properties in the System.Web.UI.WebControls.DetailsView control that need to be persisted, even when the System.Web.UI.Control.EnableViewState property is set to false.

Note:

This method is used primarily by control developers to extend the System.Web.UI.WebControls.DetailsView control.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0