Home > DeveloperSection > Interviews > What is the function of the ViewState property?

Posted on    August-24-2014 11:58 PM

 ASP.Net ASP.Net 
 2 Answer(s)
  964  View(s)
Rate this:

Sumit Kesarwani

Total Post:782

Posted on    August-24-2014 12:00 AM

The ASP.NET 4.0 introduced a new property called ViewStateMode for the Control class. Now you can enable the view state to an individual control even if the view state for an ASP.NET page is disabled.

Amir Masood
Amir Masood

Total Post:1

Posted on    August-25-2014 12:00 AM

ViewState is used to maintain the state of controls during page postback and if we save any control values or anything in viewstate we can access those values throughout the page whenever it required

Don't want to miss updates? Please click the below button!

Follow MindStick