Specifies whether view state will be enabled for a control.
Assembly: System.Web (in System.Web.dll)
You can use the Control.ViewStateMode property to enable view state for an individual control even if it is disabled for the page.
To turn off view state for a page and turn it on for a specific control on the page, set the EnableViewState property of the page and the control to true, set the ViewStateMode property of the page to , and set the ViewStateMode property of the control to .
The ViewStateMode property of a page or a control has an effect only if the EnableViewState property is set to true. If the EnableViewState property is set to false, view state will be turned off even if the ViewStateMode property is set to .
Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.