PagesSection.EnableViewState Propriedade
Definição
Obtém ou define um valor que indica se o estado de exibição está habilitado ou desabilitado.Gets or sets a value indicating whether view state is enabled or disabled.
public:
property bool EnableViewState { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("enableViewState", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
public bool EnableViewState { get; set; }
[<System.Configuration.ConfigurationProperty("enableViewState", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
member this.EnableViewState : bool with get, set
Public Property EnableViewState As Boolean
Valor da propriedade
true se o estado de exibição estiver habilitado; false se o estado de exibição estiver desabilitado.true if view state is enabled; false if view state is disabled. O padrão é true.The default is true.
- Atributos
Exemplos
O exemplo de código a seguir mostra como usar a EnableViewState propriedade.The following code example shows how to use the EnableViewState property.
// Get the current EnableViewState property value.
Console.WriteLine(
"Current EnableViewState value: '{0}'",
pagesSection.EnableViewState);
// Set the EnableViewState property to false.
pagesSection.EnableViewState = false;
' Get the current EnableViewState property value.
Console.WriteLine( _
"Current EnableViewState value: '{0}'", _
pagesSection.EnableViewState)
' Set the EnableViewState property to false.
pagesSection.EnableViewState = False