System.Web.UI.WebControls.DataKey.SaveViewState Method

Saves the current view state of the System.Web.UI.WebControls.DataKey object.

Syntax

protected virtual object SaveViewState ()

Returns

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

Remarks

The DataKey.SaveViewState method is a helper method used by the System.Web.UI.WebControls.DataKey class to save the state of the object.

Note:

This method is used primarily by control developers.

Requirements

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