This documentation is archived and is not being maintained.
Chart::ViewStateContent Property
Visual Studio 2010
Gets or sets a value that determines the view state to be persisted at the client.
Assembly: System.Web.DataVisualization (in System.Web.DataVisualization.dll)
[BindableAttribute(true)] public: property SerializationContents ViewStateContent { SerializationContents get (); void set (SerializationContents value); }
<asp:Chart ViewStateContent="SerializationContents" />
Property Value
Type: System.Web.UI.DataVisualization.Charting::SerializationContentsA SerializationContents enumeration value that represents the view state. The default value is Default, which signifies that the view state will consist of all chart properties.
Use this property to set the view state of the Chart control.
When you set this property, the view state is automatically saved by the Chart control, and is also loaded automatically when a postback occurs.
For greater flexibility, use the ViewStateData property for user-defined view state.
To enable state management, set the EnableViewState property to true.
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: