Dundas Chart for ASP.NET
EnableViewState Property
See Also  Send comments on this topic.
Dundas.Charting.WebControl Namespace > Chart Class : EnableViewState Property


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.

Syntax

Visual Basic (Declaration)  
Public Overrides Property EnableViewState As Boolean
Visual Basic (Usage) Copy Code
Dim instance As Chart
Dim value As Boolean
 
instance.EnableViewState = value
 
value = instance.EnableViewState
C#  
public override bool EnableViewState {get; set;}

Return Value

True if state management is enabled, otherwise false. Defaults to false.

Remarks

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.

Requirements

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

See Also

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.