difference betwen session and viewstate in asp.net

Posted by Shanky11 under ASP.NET on 11/27/2012 | Points: 10 | Views : 808 | Status : [Member] | Replies : 2
difference betwen session and viewstate in asp.net ?????????//
pleaseprovide in details .Don't send link




Responses

Posted by: Ranjeet_8 on: 11/27/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
# View State persist the values of controls of particular page in the client (browser) when post back operation done. When user requests another page previous page data no longer available.

# Session State persist the data of particular user in the server. This data available till user close the browser or session time completes.

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

Posted by: Prabu_Spark on: 11/27/2012 [Member] Starter | Points: 25

Up
0
Down
ViewState:
It is used to maintain the value during post back operation.

Session:
It is used to maintain the value until the browser closed. The new
Session id is created for new user.

With regards,
J.Prabu.
[Email:prbspark@gmail.com]

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

Login to post response