What are the difference between SessionState and ViewState [Resolved]

Posted by Srinibaschampati under ASP.NET on 7/31/2013 | Points: 10 | Views : 1063 | Status : [Member] | Replies : 3
Hello team,

What are the difference between SessionState and ViewState




Responses

Posted by: Satyapriyanayak on: 7/31/2013 [Member] [MVP] Silver | Points: 50

Up
0
Down

Resolved


SessionState and ViewState are used to store data value.

View State:

1.View state is maintained in page level only.
2.View state of one page is not visible in another page.
3.View state information stored in client only.
4.View state persist the values of particular page in the client (browser) when post back operation done.
5.View state used to persist page-instance-specific data.

Session State:
1.Session state is maintained in session level.
2.Session state value is available in all pages within a user session.
3.Session state information stored in server.
4.Session state persist the data of particular user in the server. This data available till user close the browser or session time completes.
5.Session state used to persist the user-specific data on the server side.




If this post helps you mark it as answer
Thanks

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

Posted by: aswinialuri-19361 on: 7/31/2013 [Member] Starter | Points: 25

Up
0
Down
hi ,
Refer this links it might be helpful to you
http://msdn.microsoft.com/en-us/library/ms972976.aspx
http://www.aspdotnet-suresh.com/2012/11/aspnet-difference-between-viewstate-and.html
http://www.codeproject.com/Questions/145316/Difference-between-static-variable-sessionstate-an

Mark as Answer if it helps you
Thanks&Regards
Aswini Aluri

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

Posted by: Ssj_Kumar on: 7/31/2013 [Member] Starter | Points: 25

Up
0
Down
http://www.dotnetfunda.com/forums/thread11707-difference-between-viewstate-and-sessionstate.aspx
http://www.dotnetspider.com/forum/273959-What-s-difference-between-viewstate-sessionstate.aspx

Regards,
Jayakumar Selvakani

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

Login to post response