62,046
社区成员
发帖
与我相关
我的任务
分享
string str = "";//复选框前面的select语句
string[] strItem =new string[CheckBoxList1.Items.Count];
for (int i = 0; i < CheckBoxList1.Items.Count; i++)
{
if (CheckBoxList1.Items[i].Selected)
{
str += strItem[i]+"='"+CheckBoxList1.Items[i].Value+"',";
}
}