HERE WE CAN SEPERATE WITH ","
var selected = ChkBoxList.Items.Cast<ListItem>().Where(x => x.Selected);
foreach (var chkItem in selected)
{
string str += chkItem.Value + ",";
}
var selected = ChkBoxList.Items.Cast<ListItem>().Where(x => x.Selected);
foreach (var chkItem in selected)
{
string str += chkItem.Value + ",";
}
No comments:
Post a Comment