for (int intIndex = 0; intIndex < this.CheckBoxList1.Items.Count; intIndex++) 
{
if (this.CheckBoxList1.Items[intIndex].Selected)
{
                                              string str = this.CheckBoxList1.Items[intIndex].Value
}
}

解决方案 »

  1.   

    for (int i=0;i<checkboxlist1.item.count;i++)
    {
    if(this.checkboxlist1.item[i].selected)
    {
    Response.write(this.checkboxlist1.item[i].Value);
    }
      

  2.   

    string value = "";
                for(int i=0;i<this.CheckBoxList1.Items.Count;i++)
                {
                    if (this.CheckBoxList1.Items[i].Selected == true)
                    {
                        //
                        value += this.CheckBoxList1.Items[i].Value;
                    }            }
      

  3.   

    你要是多选的话就改成for (int intIndex = 0; intIndex < this.CheckBoxList1.Items.Count; intIndex++) 
                    {
                        if (this.CheckBoxList1.Items[intIndex].Selected)
                        {
                                                  string str += this.CheckBoxList1.Items[intIndex].Value
                        }
                    }