Control.EnableViewState Property[
^]
It gets or sets a value indicating whether the server
control persists its view state, and the view state of any child controls it contains, to the requesting client.
View state enables a server control to maintain its state across
HTTP
requests.
View state for a control is enabled
if all of the following conditions are met:
-The
EnableViewState
property for the
page is set to
true.
-The
EnableViewState
property for the
control is set to
true.
-The
ViewStateMode
property for the control is set to Enabled or inherits the Enabled setting.
Refer more:
http://msdn.microsoft.com/en-us/library/system.web.ui.control.viewstatemode.aspx[
^]
http://msdn.microsoft.com/en-us/library/bb386448.aspx[
^]
There are times when it is appropriate to disable
view state, particularly to improve application performance.
Also have a look on:
Page.EnableViewState Property[
^] Which gets or sets a value indicating whether the
page maintains its
view state, and the view state of any server controls it contains, when the current page request ends.