.net 獲取checkBoxList 選中的值
public string GetCheckBoxListValues(ListControl lc)
{
string tempValues = "";
foreach (ListItem li in lc.Items)
{
if (li.Selected)
tempValues += li.Value+",";
}
tempValues = tempValues.Trim(',');
return tempValues;
}
posted on 2010-08-12 11:20
sanmao 閱讀(666)
評論(0) 編輯 收藏