/// <summary>//From:www.uzhanbao.com
/// asp.net得到CheckBoxList中选中了的值
/// </summary>
/// <param name="checkList">CheckBoxList</param>
/// <param name="separator">分割符号</param>
/// <returns></returns>
public static string GetChecked(CheckBoxList checkList, string separator)
{
string selval = "";
for (int i = 0; i < checkList.Items.Count; i++)
{
if (checkList.Items[i].Selected)
{
selval += checkList.Items[i].Value + separator;
}
}
return selval;
}
asp.net得到CheckBoxList中选中了的值
最新推荐文章于 2024-06-03 09:30:00 发布