This documentation is archived and is not being maintained.

PageAdapter::ClientState Property

Gets an encoded string that contains the view and control states data of the Web page to which this derived page adapter is attached.

Namespace:  System.Web.UI.Adapters
Assembly:  System.Web (in System.Web.dll)

protected:
property String^ ClientState {
	String^ get ();
}

Property Value

Type: System::String
An encoded String containing the combined view and control states of the controls on the associated Page.

The ClientState property provides access to the internal ClientState property of the Page class.

View state data stored by the PageStatePersister object in the internal ClientState property of Page will always be saved in the hidden field on the Web page.

Notes to Inheritors

When you inherit from the PageAdapter class, you cannot override the ClientState property because it is not virtual. To modify the behavior of ClientState in a derived class, implement a new ClientState property that references the ClientState property of the base class.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: