How to fill a DropDownlist using Subsonic 3

 

How to populate a DropDownList using Subsonic 3.

var

titles = catalog.data.title.All();

 

foreach (var item in titles)
{
  DropDownList.Items.Add(
new ListItem(item.id, item.prefix.Trim()));
}