Chart.EnableViewState Propriedade
Definição
Obtém ou define um sinalizador que determina se o gerenciamento de estado está habilitado.Gets or sets a flag that determines whether state management is enabled.
public:
virtual property bool EnableViewState { bool get(); void set(bool value); };
[System.ComponentModel.Bindable(true)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public override bool EnableViewState { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)>]
member this.EnableViewState : bool with get, set
Public Overrides Property EnableViewState As Boolean
Valor da propriedade
true Se o gerenciamento de estado estiver habilitado; caso contrário, false .true if state management is enabled; otherwise, false. O valor padrão é false.The default value is false.
- Atributos
Comentários
Defina essa propriedade como true para habilitar o gerenciamento de estado para o Chart controle.Set this property to true to enable state management for the Chart control.
O estado de exibição que é salvo é determinado pelas ViewStateContent Propriedades ou ViewStateData .The view state that is saved is determined by either the ViewStateContent or ViewStateData properties.
Observação
Essa propriedade deve ser definida antes do Page_Load (o Page_Init ou o Construtor funcionará) ou não terá efeito.This property must be set prior to the Page_Load (the Page_Init or the constructor will work) or it will have no effect.
Para obter mais informações, consulte a documentação do Visual Studio que aborda o estado de exibição ou gerenciamento de estado.For more information consult the Visual Studio documentation that discusses view state or state management.