Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

viewstate in asp.net

Tags:

asp.net

What are the properties(of server control) that are stored in the ViewState in ASP.NET

like image 545
andrew Sullivan Avatar asked Feb 26 '23 23:02

andrew Sullivan


2 Answers

See Understanding ASP.NET View State

like image 88
Galwegian Avatar answered Mar 07 '23 12:03

Galwegian


ViewState is a dictionary-type object that stores, by default, the state of all the controls in the markup of your page. You can also programmatically add values to ViewState:

ViewState["MyStoredValue"] = 15;

You can use page-level tracing to inspect the contents of ViewState when debugging.

like image 26
Dave Swersky Avatar answered Mar 07 '23 10:03

Dave Swersky