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:
- To pass a parameter to the data source control and bind the list.
- To pass the selected value to the FormView control during an update.
- 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.