ViewState in ASP.NET
ViewState is a mechanism in ASP.NET used to retain the state values of web controls during postbacks. When a WEB form (FORM) is set to runat="server", this form (FORM) will be appended with a hidden attribute called _VIEWSTATE. The _VIEWSTATE stores the state values of all controls that are saved in the ViewState.