System.Web.UI.WebControls.Menu.SaveControlState Method

Saves the state of the properties in the System.Web.UI.WebControls.Menu control that need to be persisted.

Syntax

protected override object SaveControlState ()

Returns

An object that contains the state data for the control. If there have been no changes to the state, this method returns null.

Remarks

This method is used to save the state of the properties in the System.Web.UI.WebControls.Menu control that need to be persisted, even when the System.Web.UI.Control.EnableViewState property is set to false. The Menu.SaveControlState method is concerned with state data that is essential for a control's operation (such as an index or keyword) and is separate from the control's view-state data.

Note:

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

Requirements

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