I have a checkbox named cbDrinks. It lists various types of drinks that can be ordered as part of a meeting request vb.net form. I want to grab all the items that are checked and include them in a confirmation email as part of the body of the email (sString). But, with the following code, I just keep getting the first checkbox 18 times (there are 18 checkboxes populated form a sqlDatasource) , and not the ones actually selected. What am I doing wrong?
For Each li As ListItem In cbDrinks.Items
sString += "Type of Drink(s):" & cbDrinks.SelectedItem.Text & ...
Go to the complete details ...