Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
EnableViewState Property

PagesSection::EnableViewState Property

Gets or sets a value indicating whether view state is enabled or disabled.

Namespace:  System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[ConfigurationPropertyAttribute(L"enableViewState", DefaultValue = true)]
public:
property bool EnableViewState {
	bool get ();
	void set (bool value);
}

Property Value

Type: System::Boolean
true if view state is enabled; false if view state is disabled. The default is true.

The following code example shows how to use the EnableViewState property.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft