Differrent state management techniques?

Posted by Maheshvishnu under ASP.NET on 8/31/2012 | Points: 10 | Views : 4975 | Status : [Member] | Replies : 8
Explain about state management techniques in asp.net in detail.

Thanks in advance.
Mahesh

mahesh


Responses

Posted by: Ranjeet_8 on: 8/31/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
There are two types State Management :
1. Client Side State Management
2. Server Side State Management
Read this article for more details.
http://www.dotnetfunda.com/articles/article61.aspx

.

Maheshvishnu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Muhsinathk on: 9/17/2012 [Member] Bronze | Points: 25

Up
0
Down
1)State management is the process by which you maintain state and page information over multiple requests for the same or different pages.
2)Asp.Net Pages are destroyed and re-created with each round trip to the server; therefore, page information will not exist beyond the life cycle of a single page.
3)ASP.NET provides multiple ways to maintain state between server round trips this can be either client side or server side.
Some of the ways we can use to manage state include the following:

1.Using Session and Application objects to cache information.
2.Using Memory and Disk Cookies to preserve information.
3.Using hidden input fields or the URL-embedded information to pass information from one page to another.
4.Using the ViewState property of the page to set and retrieve information stored in a StateBag object.
5. Using SQL Server to store state information.


Maheshvishnu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hariinakoti on: 9/17/2012 [Member] Starter | Points: 25

Up
0
Down
Statemanagement Techniques:
QueryString
Cookies
Cache
ViewState
Session state
Application state
Static variables
Profiles


Thanks & Regards
Hari

Maheshvishnu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Muhsinathk on: 9/17/2012 [Member] Bronze | Points: 25

Up
0
Down
Two types of State management.

1.Client side State management Options
2.Server side state management options:

Client side State management Options

1.View state
View State can be used to store state information for a single user. View State is a built in feature in web controls to persist data between page post backs. You can set View State on/off for each control using EnableViewState property
2.Control state
Control State is new mechanism in ASP.NET 2.0 which addresses some of the shortcomings of View State. Control state can be used to store critical, private information across post backs.
3.Hidden fields
Hidden fields are used to store data at the page level.
4.Cookies
A cookie is a small piece of text stored on user's computer
5.Query strings
Query strings are usually used to send information from one page to another page. They are passed along with URL in clear text.

Server side state management options:

1. Application
Application object is used to store data which is visible across entire application and shared across multiple user sessions.
2.Session
Session object is used to store state specific information per client basis. It is specific to particular user
3.Cache
A cache provides temporary storage of resources that have been requested by an application.

Maheshvishnu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Muhsinathk on: 9/17/2012 [Member] Bronze | Points: 25

Up
0
Down
Please mark as answer if it helpful to u..That helps others who search the same.

Maheshvishnu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hariinakoti on: 9/18/2012 [Member] Starter | Points: 25

Up
0
Down
Good Job Muhsinathk

Thanks & Regards
Hari

Maheshvishnu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Muhsinathk on: 9/18/2012 [Member] Bronze | Points: 25

Up
0
Down
Thanks

Maheshvishnu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hariinakoti on: 9/18/2012 [Member] Starter | Points: 25

Up
0
Down
welcome

Thanks & Regards
Hari

Maheshvishnu, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response