DeviceSpecific.EnableViewState Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets a value indicating whether the control automatically saves its state for use in round trips. This API is obsolete. For information about how to develop ASP.NET mobile applications, see the Web site.

Namespace:   System.Web.UI.MobileControls
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)

public override bool EnableViewState { get; set; }

Property Value

Type: System.Boolean

true if the control automatically saves its state; otherwise, false.

You can disable view-state management for the page by using the EnableViewState attribute of the directive, or you can disable view state on individual controls by setting their individual EnableViewState properties.

.NET Framework
Available since 1.1
Return to top