A TextBox is a WebControl which is a Control which has a ViewState property.
So why when I type ‘.’ after myTextBox doesn’t the ViewState property appear in the list of properties and methods?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s for use with custom controls that need to keep a viewstate, not for external modification. It’s
protected(i.e. only accessible from derived objects) for a reason.For example, if you created a slider control that kept a viewstate for which position it was at, you would need to use the
ViewStateproperty. But there’s no reason for anything else to use your slider control’s viewstate.