System.Web.UI.HiddenFieldPageStatePersister.Save Method

Serializes any object state contained in the PageStatePersister.ViewState or PageStatePersister.ControlState property and writes the state to the response stream.

Syntax

public override void Save ()

Remarks

The System.Web.UI.HiddenFieldPageStatePersister implements the HiddenFieldPageStatePersister.Save method to persist page and control state to a client by writing it to a <hidden> HTML element in the outgoing response to the client. The System.Web.UI.ObjectStateFormatter object accessed by the PageStatePersister.StateFormatter property is used to deserialize the data.

Requirements

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