获取CheckBoxList控件选中的值
foreach (ListItem item in CheckBoxList1.Items)
{
if (item.Selected == true)
{
Response.Write(item.Value + ";");
}
}
获取CheckBoxList控件选中的值
foreach (ListItem item in CheckBoxList1.Items)
{
if (item.Selected == true)
{
Response.Write(item.Value + ";");
}
}