In this article I will give you overview of State management in Asp.NET. I will try to cover both types of state management in this article i.e. client side and Server Side.
State management is a technique by which we can maintain the state of web page, controls and objects over multiple requests for same or different pages. All the Asp.net web application is stateless.
Hyper Text Transfer Protocol (HTTP) is a stateless protocol. It doesn’t hold the state of previous website that we visited before closing our browser that is called state less.
So to maintain state of object, we use State management techniques in asp.net websites.
Types of State Management:
There are two types of state management:
1. Client Side state management
2. Server side state management
Client Side state management:
I this type of state-management information will be stored on client’s machine.
It does not use the server resources and store the information in html page, HTTP request or on disk cache of machine. Data is not secure in this type of state management, but faster than server side in performance and also support for multiple browsers.
Type of Client side state management:
a) View-State
b) Hidden fields
c) Cookies
d) Query string
e) Control state
Server Side state management:
In this type of state management information will be stored on server. Server side state management provides better security and reduces the bandwidth. But it is slow when compared to client side management.
Following are the Server side state management option that we use:
a) Session State
b) Application State
0 comments:
Post a Comment