Dynamic Cascading Drop-Down Lists

This page shows two dependent drop-down lists in a FormView control template. The lists appear when you edit a record.

The first list (manufacturer) is created and data-bound entirely in declarative code. The second list (model) is bound in code based on the selection in the first list. Code is required:
  1. To pass a parameter to the data source control and bind the list.
  2. To pass the selected value to the FormView control during an update.
  3. To repopulate the second list when the user makes a new selection in the first list.

The source for a simple version of this page is available here. An explanation is available here.

CustomerID: 1
Name: I
Manufacturer: Hyundai
Model: Elantra