代码
protected
void
Button1_Click(
object
sender, EventArgs e)
{
if (CheckBoxList1.SelectedIndex ==- 1 )
{
Response.Write( " 请至少选择一项! " );
return ;
}
}
{
if (CheckBoxList1.SelectedIndex ==- 1 )
{
Response.Write( " 请至少选择一项! " );
return ;
}
}