ASP.NET Control State vs View State

Control State (or ControlState) was introduced with ASP.NET 2.0 as an alternative to View State (or ViewState) as a method for preserving the state of a control.

Control State is designed only to  store a control’s essential data (like a dropdown list’s selected item) that needs to be available on a page postback. Unlike View State, Control State cannot be disabled.  to enable the control to function even when view state has been disabled. ASP.NET   stores the control state in for pages in the same hidden element which stores the view state. So if all you wish to do is preserve the control’s basic state over postbacks you can disable View State and Control State will handle all the preserving of state and reduce the page load.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>