you can use javascript to write some client side script to validate or see
User Tips: Creating a Validation Control for CheckBoxLists 
http://www.4guysfromrolla.com/webtech/tips/t040302-1.shtml

解决方案 »

  1.   

    可以用 VALIDATECONTROL来做。
      

  2.   

    if(CheckBoxList1.SelectedIndex==-1)
             Response.Write("<script>alert('未选中');</script>");
      

  3.   

    int Int_Selected=0;
    foreach(ListItem li in CheckBoxList1.Items)
    {
       if (li.selected=true)
           Int_Selected=Int_Selected+1;

    if (Int_Selected=0)
      Response.Write("<script>alert('未选中');</script>");
      

  4.   

    hgknight(江雨.net)的是正解
      

  5.   

    xqinger(清儿)的也很好啊,这里不分正解、歪解的。
      

  6.   

    我想问一下hgknight(江雨.net)你的那句是不是javascript写的?
      

  7.   

    服务器端输出js语句,最终还是通过js来弹出对话框