<asp:CheckBoxList ID="cbl" runat="server" RepeatDirection="Horizontal">
<asp:ListItem Value="1" Text=" 11"></asp:ListItem>
<asp:ListItem Value="2" Text=" 22"></asp:ListItem>
</asp:CheckBoxList>
<asp:CustomValidator ID="cv" runat="server" ErrorMessage="请至少选择一项" ClientValidationFunction="VerifyFunction"/>
//验证脚本
function VerifyFunction(sender, args){
var num=$("#cbl input[@type=checkbox]:checked").size();
if (num>0)
{
args.IsValid = true;
}
else
{
args.IsValid = false;
}
}