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
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.
Liked By
Write Answer
What is the function of the ViewState property?
Join MindStick Community
You have need login or register for voting of answers or question.
Amir Masood
25-Aug-2014Sumit Kesarwani
24-Aug-2014The 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.