I have been reading an article about ViewState and page's life cycle by Scott Mitchell which was published on May 2004. Here is the link:
First of all, I would like to know if the concepts he has explained still hold true in the latest versions of ASP.NET and IIS. Also, I tried a simple page to see how it works in real. According to the article, what needs to be stored in view state is any programmatic changes to page's state. Ok I created a very simple page (in ASP.NET 3.5 and IIS 7.0) containing a text box with initial value of 'A', two button, first changes the text box value to 'B', the second only posts the page back. I set the EnableViewState value of the textbox to false. I first clicked the first button, it changed the value of the textbox to 'B', and after clicking the second button, I expected the value of the textbox to change back to 'A' (According to what was explained in the article, depicted with a graph). But the value remained 'B'. This has caused me a lot of confusion. Maybe I haven't understood the whole thing correctly. Please someone explain this.
View Complete Post