listbox2.Items
ListBox
foreach (string item in listBox2.Items) { // same the item to the database }
string TimeslotItems = ""; foreach (ListItem item in listBox2.Items) { TimeslotItems += item.ToString() + ","; // /n to print each item on new line or you omit /n to print text on same line }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)