I am working on small project ASP.NET Web forms, so backend language is C#, and I want to populate checkboxlist from database, and I did it, but values I get are very strange, I need to get names of database columns or something, because right now it looks like this:
On windows forms I would know what to do, (DISPLAY MEMBER = "Name") and problem solved, but on the web I dont know how to get columns name, because this looks so strange..
Thanks guys,
Cheers.

DataValueFieldand theDataTextFieldattributes of the CheckBoxList.CheckBoxList.SelectedValueis the proper way since several items can be selected.)List<ListItem> selected = checkBoxUloge.Items.Cast<ListItem>() .Where(li => li.Selected) .ToList();and it works perfectly, could u take minute or two and explain to me/us why do the using Cast<ListItem> and why in general ListItem, thanks again dude