ASP.NET ComboBox - Item Templates



The items of the ComboBox can be customized using templates. You can embed any content inside an item template,
including HTML markup and ASP.NET server controls (any control from the Obout suite may be added to a template).

In order to set up an item template, use the ItemTemplate property of the ComboBox.
To extract data from the data item, use the Eval method which expects as a parameter
the name of the data field from which to load the data.



« Back to examples