ViewState in ASP.NET
ViewState is a mechanism for saving a WEB control back post status value in ASP.NET. In the Web Form (Form) is set to runat = "server", this form (form) will be attached to a hidden property _ViewState. _ViewState stores all controls in ViewState in ViewState.
ViewState is a domain in CONTROL, and all other controls get the ViewState feature by inheritance Control. Its type is System.Web.ui.Statebag, a name / value of an object collection.
When a page requests a page, ASP.NET seizes all controls into a string, and then be sent to the client as the hidden property of the form. When the client returns the page, the ASP.NET analyzes the return form attribute and assigns the value corresponding to the control. Of course, these are responsible for ASP.NET, which is transparent to the user. Conditions using ViewState
If you want to use ViewState, you must have a server-side form tag (