开发者

viewstate in asp.net

开发者 https://www.devze.com 2022-12-31 15:51 出处:网络
What arethe properties(of server control) that are stored in th开发者_Go百科e ViewState in ASP.NETSee Understanding ASP.NET View StateViewState is a dictionary-type object that stores, by default, the

What are the properties(of server control) that are stored in th开发者_Go百科e ViewState in ASP.NET


See Understanding ASP.NET View State


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.


if you say what are the properties that are stored then they are the ones that you have stored, if you are asking what can be stored then it can be anything that you can serialize.

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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消