Export (0) Print
Expand All

Chart.ViewStateContent Property

Gets or sets a value that determines the view state to be persisted at the client.

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

[BindableAttribute(true)]
public SerializationContents ViewStateContent { get; set; }
<asp:Chart ViewStateContent="SerializationContents" />

Property Value

Type: System.Web.UI.DataVisualization.Charting.SerializationContents
A 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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft