This documentation is archived and is not being maintained.

ChangePassword.SaveControlState Method

This member overrides Control.SaveControlState(), and more complete documentation might be available in that topic.

Saves any server control state changes that have occurred since the time the page was posted back to the server.

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

protected internal override Object SaveControlState()

Return Value

Type: System.Object
The server control's current state; otherwise, null.

Use the SaveControlState method to save state information required for the operation of the ChangePassword control. This control state data is stored separately from the view state data for the ChangePassword control.

Custom controls using control state must call the RegisterRequiresControlState method on the Page object before saving control state.

Notes to Inheritors

When control state is saved, a string object is returned to the client as a variable that is stored in an HTML <input type="hidden" /> element. Override the SaveControlState method to extract the state information to use in the ChangePassword control.

Control state is intended for small amounts of critical data, such as a page index or a keyword. Using control state for large amounts of data can adversely affect page performance.

.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.