What is ViewState?

 Posted by Webmaster on 4/7/2008 | Category: ASP.NET Interview questions | Views: 18199

ViewState allows the state of objects (serializable) to be stored in a hidden field on the page. ViewState is transported to the client and back to the server, and is not stored on the server or any other external source. ViewState is used to retain the state of server-side objects between postabacks.

Source: http://blogs.crsw.com/mark/art | | Alert Moderator 

Comments or Responses

Posted by: Meda.Ravibabu on: 5/31/2012 | Points: 10

What is said above is correct but one point "is not stored on the server or any other external source" may be corrected.because by default the viewstate is stored on clientside to reduce the overhead on the server and it is recommended as well.we can store the viewstate in session and external sources if viewstate is very high to improve the performance.
Posted by: Shreedar on: 8/17/2015 | Points: 10

View state is a client side state management technique.
View state stores the values in the html hidden fields.
These values are present only in the page level.

refer below link of DNF for complete statemanagement


Sridhar Thota.
Posted by: Chvrsri on: 8/17/2015 | Points: 10
Hi Sridhar Thota,

Appreciate your contribution to the site. Please post the same question in the Forums Section with your version. So that it reaches maximum people and will help some one.

Moderator Interview Section

Login to post response

Latest Interview Questions