DeviceSpecific::EnableViewState Property
.NET Framework (current version)
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.
Assembly: System.Web.Mobile (in System.Web.Mobile.dll)
public: [BrowsableAttribute(false)] [BindableAttribute(false)] property bool EnableViewState { virtual bool get() override; virtual void set(bool value) override; }
Property Value
Type: System::Booleantrue 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
Available since 1.1
Control::EnableViewState
DeviceSpecific Class
System.Web.UI.MobileControls Namespace
@ Page
Introduction to the DeviceSpecific Control
Show: