SyntaxFix
Write A Post
Hire A Developer
Questions
You can try this:-
string values = ""; foreach(ListItem item in myCBL.Items){ if(item.Selected) { values += item.Value.ToString() + ","; } } values = values.TrimEnd(','); //To eliminate comma in last.