View in asp.net

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

+4
source share
3 answers

ViewState is a dictionary type object that by default saves the state of all controls in the layout of your page. You can also programmatically add values ​​to the ViewState:

ViewState["MyStoredValue"] = 15; 

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

+3
source

if you say what properties are stored, then they are what you saved, if you ask what you can save, then that could be all that you can serialize.

You can save your value using Viewstate ["variableName"] = value;

and you can go back using the variable = Viewstate ["variableName"];

+1
source

Source: https://habr.com/ru/post/1310738/


All Articles