Thomas Bandt

Über mich | Kontakt | Archiv

Getting all selected Items in a CheckBoxList

I was wondering about it, but you have still to read the selected items in a CheckBoxList manually - like in old ASP.

StringBuilder bv = new StringBuilder("");

foreach(ListItem bvh in Bauvorhaben.Items) {
   
if(bvh.Selected) {
       
bv
.Append(bvh.Value + ", ");
   
}
}



« Zurück  |  Weiter »