Tuesday, June 30, 2009

ViewState and Postback


The aim of this article is to clarify the question that many new Web developers might have about ViewState.

Why do some Web controls like Textbox retain values even after disabling the ViewState while others do not?


Let’s build a simple Web application to examine how ViewState works.

Create a blank Web project and paste the code given below in the page: