private void Button1_Click(object sender, System.EventArgs e)
{
if(this.Button1.Text=="全部选中")
{
this.Button1.Text="取消选中";
for(int i=0;i<this.CheckBoxList1.Items.Count;i++)
{
this.CheckBoxList1.Items[i].Selected=true;
}
}
else
{
this.Button1.Text="全部选中";
for(int i=0;i<this.CheckBoxList1.Items.Count;i++)
{
this.CheckBoxList1.Items[i].Selected=false;
}
}
}