Chart.ViewStateData Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
ViewStateData has been deprecated. Please investigate Control.ViewState instead.
Gets or sets the user-defined view state of the control.
public:
property System::String ^ ViewStateData { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.Browsable(false)]
[System.Obsolete("ViewStateData has been deprecated. Please investigate Control.ViewState instead.")]
public string ViewStateData { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.Browsable(false)>]
[<System.Obsolete("ViewStateData has been deprecated. Please investigate Control.ViewState instead.")>]
member this.ViewStateData : string with get, set
Public Property ViewStateData As String
Property Value
A string
value that represents the view state of the control, which is embedded in the Web document at the client.
- Attributes
Remarks
When you specify data to persist at the client, this property provides greater flexibility compared with the ViewStateContent property.
When the user-defined view state is implemented, it is up to the developer to set the view state, and to utilize the view state when a postback occurs.
The Save
and Load
methods of the ChartSerializer object can optionally be used to set the view state, as well as to load the view state when a postback occurs. See the sample code below for an example of this.
For simplicity, when you specify the chart state to be saved, use the ViewStateContent property, which can be set to data, visual appearance properties or both.
To enable state management, set the EnableViewState property to true
.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기