ASP.NET Server Control State


Finally, another kind of state that is managed by ASP.NET is server control state. Developers who used classic ASP to create data-driven applications had to figure out how to maintain the state of the various HTML form elements on their ASP pages from one page to the next, or even between submissions of a page that submits to itself. HTML provides no built-in mechanism for maintaining the state of individual form elements, so developers were left to come up with their own methods of maintaining and restoring this information.

ASP.NET provides a solution to this challenge with the server control architecture. All ASP.NET server controls are capable of maintaining their own state through a mechanism known as ViewState. ViewState is maintained on a page- by-page basis as a hidden form field that contains all of the state information for all of the form elements on that page.

ViewState and server controls are discussed in detail in Chapter 8 and Chapter 10.




Microsoft ASP. NET Programming with Microsoft Visual Basic. NET Version 2003 Step by Step
Microsoft ASP.NET Programming with Microsoft Visual Basic .NET Version 2003 Step By Step
ISBN: 0735619344
EAN: 2147483647
Year: 2005
Pages: 126

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net