<asp:CheckBoxList ID="cblTable" runat="server" Height="226px" Width="184px" >
        <asp:ListItem>branch</asp:ListItem>
        <asp:ListItem>clienttransfer</asp:ListItem>
        <asp:ListItem>closingposition </asp:ListItem>
        <asp:ListItem>currency </asp:ListItem>
        <asp:ListItem>customerbalance</asp:ListItem>
        <asp:ListItem>customerexecution </asp:ListItem>
        <asp:ListItem>evaluationprice</asp:ListItem>
        <asp:ListItem>exchangerate</asp:ListItem>
        <asp:ListItem>et </asp:ListItem>
    </asp:CheckBoxList>
判断的是asp:checkboxlist

解决方案 »

  1.   

     function CheckEmpty()
     {
      var doc=document.all.tags("INPUT");
      var bool=false;
      for(var i=0;i<doc.length;i++)
      { 
         if(document.getElementById(doc[i].id).checked==true)
          {
            bool=true;
            break;
          }
      }
      if(!bool)
       {
         alert("请选择一个导出的表");
       }
       return bool;
     }
    ====
    自己解决!!!谁来顶下,我好把分送给他。
      

  2.   

    当页面中包含其他有checked属性的INPUT控件时会有问题CheckBoxList被render时,里面的每个CheckBox的ID是CheckBoxList的ClientID + "_index"比如 cblTable_0, cblTable_1可以用这个ID去取