ASP.NET ComboBox - Populating with Data - Declarative



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