System.Web.UI.Control.IsViewStateEnabled Property

Gets a value indicating whether view state is enabled for this control.

Syntax

protected bool IsViewStateEnabled { get; }

Value

Documentation for this section has not yet been entered.

Remarks

View state can be enabled at the page, container, or control level. When view state is disabled at the page or container level, view state is disabled for all controls contained by the page or container. The Control.IsViewStateEnabled property indicates whether view state is enabled by pages, containers, or controls.

It is possible for the Control.EnableViewState property and the Control.IsViewStateEnabled property to be different. For example, if the System.Web.UI.Page containing the control has view state disabled, the Control.EnableViewState property can be true while the Control.IsViewStateEnabled property is false.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0