Difference between View State and Session

 Posted by Santhi on 2/26/2013 | Category: ASP.NET Interview questions | Views: 3668 | Points: 40
Answer:

ViewState: We can hold the values in the viewstate and we can retrieve it wherever it is needed within a page.
The value will be saved on the client side.
Session : We can hold the values in the session and we can retrieve it back wherever it is needed in an application
The value will be saved on the server side.


Source: My Experience | Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Vijusah2010 on: 3/13/2013 | Points: 10
viewstate:-
client side state mechanism
purpose to retain values for specific page
stores only serialized values
heavy load on page
reduce page performance for massive data
non secure encoded data on page level.

Login to post response

More Interview Questions by Santhi