.NET 4

How Do I: Use the ViewStateMode Property for Managing ViewState?

By Chris Pels|16 minutes|

In this video Chris Pels shows how to use the ViewStateMode property when designing ViewState for a web site in ASP.NET. First, the functionality for managing ViewState in ASP.NET prior to ASP.NET 4 is discussed. Next, the ViewStateMode property added in ASP.NET 4 is demonstrated both at the page level and in a sample page with nested child controls. The importance of the hierarchical inheritance of the ViewStateMode property is discussed. Finally, a sample scenario for minimizing ViewState on ASP.NET pages is demonstrated.

DOWNLOADS: Code (C#)|Code (VB)|MP3|MP4|WMV

This article was originally created on September 17, 2010

Author Information

Chris Pels

Chris Pels – Chris has been instrumental in the architecture, development, and implementation of a wide variety of business systems and databases as a technology consultant since 1986. He has extensive experience in business analysis, technical specifications, database design, several programming languages including C# and VB.NET, and statistical analysis. He holds a Ph.D. from The University of Michigan and has been a speaker at Microsoft TechEd, Microsoft DevDays, VSLive, numerous events in New England