This documentation is archived and is not being maintained.
Chart::EnableViewState Property
Visual Studio 2010
Gets or sets a flag that determines whether state management is enabled.
Assembly: System.Web.DataVisualization (in System.Web.DataVisualization.dll)
[BindableAttribute(true)] [PersistenceModeAttribute(PersistenceMode::Attribute)] public: virtual property bool EnableViewState { bool get () override; void set (bool value) override; }
<asp:Chart EnableViewState="True|False" />
Property Value
Type: System::BooleanTrue if state management is enabled, otherwise false. The default value is false.
Set this property to true to enable state management for the Chart control.
The view state that is saved is determined by either the ViewStateContent or ViewStateData properties.
Note |
|---|
This property must be set prior to the Page_Load (the Page_Init or the constructor will work) or it will have no effect. |
For more information consult the Visual Studio documentation that discusses view state or state management.
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
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
Note