4

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

2
  • 1
    i am not grammar guru, but this time lack of grammar makes your question obscure. Commented May 24, 2010 at 13:18
  • What ever it is that controls want to put in there. Commented May 24, 2010 at 13:19

3 Answers 3

4

See Understanding ASP.NET View State

Sign up to request clarification or add additional context in comments.

Comments

3

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.

Comments

1

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"];

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.