ASP.NET ComboBox - Populating with Data - Declarative
Item 1
1
Item 2
2
Item 3
3
Item 4
4
Item 5
5
The ComboBox can be populated from various types of data sources:
DataSourceControls - SqlDataSource, ObjectDataSource, LinqDataSource etc.;
LINQ - LINQ queries at runtime;
Collections (generic & non-generic) - IList, IEnumerable, etc.;
DataSet / DataTable;
Declarative
The ComboBox presented in this sample is populated declaratively.
« Back to examples