How Do I?

[How Do I:] Use Control State to Persist Information for a Custom Web Server Control

By Chris Pels|13 minutes|
In this video Chris Pels will show how to store information related to a custom web server control in the control state which is independent of the ViewState information for the control. Unlike ViewState the control state can not be turned off and is therefore a more reliable way to store important information for a control. A discussion of what types of information are appropriate to store in control state is also included.

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

This article was originally created on December 17, 2007

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