State Management and type of State Management

What is State Management in asp.net :



As We know that HTTP (Hype text transfer protocol) is a stateless protocol by nature. So we want some mechanism to preserve state of webpage, a control or an object etc.  Between subsequent requests to server from one or more clients. And this mechanism is referred as State Management mechanism.
 State Management Techniques used in ASP.NET.
Fallowing State Management techniques used in ASP.NET can be categorized in two types:

Client-Side State Management


Server-Side State Management

State Management and type of State Management
State Management 

ViewState or State Management Technique

View State is one of the Client-Side State Management techniques that provide page-level state management, which means state is preserved between subsequent requests to same page. By using this technique, state of the page along with its controls is stored in a hidden form field  i.e. “__VIEWSTATE” and this field is again available on server when page is posted back with HTTP Request.

You can find this hidden field by looking into view source of an .ASPX page as:

<input type=”hidden” name=”__VIEWSTATE” value=”wEPDwUKMTM4OTIxNTEzNA9kFgJmD2QWAgIBD2QWAgIDDxYCHgVzdHlsZQV” />

ViewState data is encoded in Base64 String encoded format.

MVC Model Related Other Post:



 Asp.net Dropdownlist Related Post:

Comments