Version

SaveViewState Method (SmartWebControl)

Preserves a SmartWebControl into an object representing it's saved state to be restored later.
Syntax
'Declaration
 
Protected Overrides Function SaveViewState() As Object
protected override object SaveViewState()

Return Value

A saved state object that the ASP.NET Framework serializes to the client (and that will return in posted back data), or which will be directed to the Page's SavePageStateFromPersistenceMedium method.
Remarks

Inheritors are strong advised against overriding the base class' implementation of SaveViewState, as doing so will likely disrupt normal functionality of the SmartWebControl's support for viewstate management. Instead, there is considerable flexibility built into the SmartWebControl for supporting viewstate management of subobjects and properties, and inheritors should leverage that for any additional subobjects and properties they have added in their subclass.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also