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
- ViewState
- Control State
- Hidden Fields
- Cookies
- QueryString
Server-Side State Management
- Application State
- Session State
- Profile Properties
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:
- Bind Dropdown by Dynamically
- Fill Dropdown By database.
- Adding or binding tooltip in each item of dropdownlist
- Check box in asp Dropdown List.
- DropDown List in asp.net Programming,
- Add ListItem in DropDownList asp.net c# Example
- Drop Down List control of asp.net
- Select option to the user from many items.
- Display tooltip from database for dropdownlist items in asp.net c# example
- Show tooltip dropdownlist items by mouse over event using C# example
- Example of Adding ToolTip for each Dropdown List Item in C#.
Comments
Post a Comment