How Do I?

[How Do I]: Synchronize Data in Secondary User Control(s) Based Upon User Selections

By Chris Pels|22 minutes|
In this video Chris Pels shows how to create two DropDownList controls where selecting an item in the first list populates the items in the second list. First, an ASP.NET page is created with two DropDownList controls, one for customer and the other for states in which the customer does business. The customer list is then populated in the code behind. Next, in the SelectedIndexChanged event of the customer list the items in the state list are populated based upon the selection. Finally, there is a discussion of how this approach can be applied to other types of controls and data.

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

This article was originally created on March 6, 2009

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