Gets or sets a boolean value that determines if state management is enabled.
Gets or sets a value indicating whether the control persists its view state.
Visual Basic (Declaration) | |
---|---|
Public Overrides Property EnableViewState As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public override bool EnableViewState {get; set;} |
Return Value
True if state management is enabled, otherwise false. Defaults to false.
Setting this property to true will 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 your Visual Studio documentation concerning view state or state management.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family