循環增加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 ));
}
}
posted on 2010-08-24 14:57
sanmao 閱讀(188)
評論(0) 編輯 收藏