你用的不是checkboxlist,只是多个HTML的ckeckbox呀?应该说方法错了!
用一个服务器控件checkboxlist,然后:
for(int i=0;i<this.checkboxlist.Item.Count;i++)
{
   if(this.checkboxlist.Item[i].Ckecked)
    {
      要做什么自己决定吧!
    }
}

解决方案 »

  1.   

    上面写的是生成的html,我要在客户端实现所说效果。javascript实现
      

  2.   

    <table id="_ctl2_cblAction" border="0" style="width:277px;">
    <tr>
    <td><input id="_ctl2_cblAction_0" type="checkbox" name="_ctl2:cblAction:0" /><label for="_ctl2_cblAction_0">北京</label></td>
    </tr>
    <tr>
    <td><input id="_ctl2_cblAction_1" type="checkbox" name="_ctl2:cblAction:1" /><label for="_ctl2_cblAction_1">天津</label></td>
    </tr><tr>
    <td><input id="_ctl2_cblAction_2" type="checkbox" name="_ctl2:cblAction:2" /><label for="_ctl2_cblAction_2">山西</label></td>
    </tr>
    </table>
    <button onclick="getValue()">goooo</button>
    <script language="JavaScript">
    <!--
    function getValue()
    {
       var obj = document.getElementsByTagName("input");
       var str = "";
       for(var i=0;i<obj.length;i++)
       {
          if(obj[i].type == "checkbox" && obj[i].checked == true)
        str += obj[i].innerText+",";
       }
       alert(str);
    }
    //-->
    </script>