StyleSheet.EnableViewState Property


Gets or sets a value indicating whether the server control persists its view state, and the view state of any child controls it contains, to the requesting client. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

 virtual property bool EnableViewState { bool get(); void set(bool value); };
public override bool EnableViewState { get; set; }
member this.EnableViewState : bool with get, set
Public Overrides Property EnableViewState As Boolean

Property Value

true if the server control maintains its view state; otherwise false. The default is true.


Applies to

See also