can u explain the state management

Posted by Madhuri123 under ASP.NET on 3/30/2011 | Points: 10 | Views : 1770 | Status : [Member] | Replies : 12
hi ,
can u tell me abt the state mangements,how we are maintaing the states in web apllication




Responses

Posted by: T.saravanan on: 3/30/2011 [Member] [MVP] Silver | Points: 25

Up
0
Down
Hi,

Refer this links..Its really useful to you...
http://www.dotnetfunda.com/articles/article61.aspx
http://www.beansoftware.com/ASP.NET-Tutorials/State-Management-In-ASP.Net.aspx

Thanks,
T.Saravanan

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

Posted by: Mesh_2010 on: 3/30/2011 [Member] Starter | Points: 25

Up
0
Down

HI,

rfere this link.......
http://www.codeproject.com/KB/vista/ASPNet_State_Management.aspx
http://www.codeproject.com/KB/aspnet/ExploringSession.aspx

Thanks
RameSH sinGH

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

Posted by: Susanthampy on: 5/19/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi Pls Refer this links,

http://msdn.microsoft.com/en-us/library/75x4ha6s.aspx

Regards,
Susan

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

Posted by: Lakn2 on: 5/20/2011 [Member] Starter | Points: 25

Up
0
Down
you can find more detailed on following link

http://www.beansoftware.com/ASP.NET-Tutorials/State-Management-In-ASP.Net.aspx

Thanks&Regards
LakshmiNarayana Nalluri.

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

Posted by: T.saravanan on: 5/21/2011 [Member] [MVP] Silver | Points: 25

Up
0
Down
@Lakn2,

Already i had post a same link for this forum.Kindly go through the above answers and then post your answer.

Thanks,
T.Saravanan

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

Posted by: Muhsinathk on: 9/19/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.

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

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

Up
0
Down
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.

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

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

Up
0
Down
Mark as answer if it helpful to you..That helps others who search the same..

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

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

Up
0
Down
Nice Explanation

Thanks & Regards
Hari

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

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

Up
0
Down
Thanks

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

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

Up
0
Down
welcome

Thanks & Regards
Hari

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

Posted by: Pgayath on: 9/21/2012 [Member] Starter | Points: 25

Up
0
Down
hi Madhuri:

You can get adeep insight into state management techniques from the below links.

http://www.codeproject.com/Articles/31994/Beginners-Introduction-to-State-Management-Techniq
http://msdn.microsoft.com/en-us/library/75x4ha6s(v=vs.100).aspx
http://www.etechplanet.com/blog/client-side-state-management-in-aspnet.aspx

Thanks and Regards,
Gayathri P

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

Login to post response