循環增加checkboxlist的選項
public void SelectListIndex(ListControl lc,string values)
{
string[] tempValues = values.Split(',');
if (tempValues.Length > 0)
{
foreach (string tempvalue in tempValues)
lc.Items.Add(new ListItem(tempvalue ,tempvalue ));
}
}
文章來源:http://www.cnblogs.com/wangdetian168/archive/2010/08/24/checkboxlist-item.html