DeviceSpecific.EnableViewState Property

 

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 www.asp.net/mobile Web site.

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

[BrowsableAttribute(false)]
[BindableAttribute(false)]
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
Show: