循環(huán)增加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
posted on 2010-09-28 10:47
sanmao 閱讀(220)
評論(0) 編輯 收藏