document.getElementById( "<%=CheckBoxList1.ClientID%> ").options[i].selected   =   true;
i为你要选中的那项

解决方案 »

  1.   

    后台调用:if (CheckBoxList1.Items.FindByValue('你要选中项的值') != null)
       CheckBoxList1.SelectedValue = '你要选中项的值';
      

  2.   


            CheckBoxList1.Items[0].Selected = true;
      

  3.   

    在绑定的时候find到那个要显示的ListItem  设置它的Selected=true
      

  4.   

    这个是直接绑定的,用SqlDataSource绑定的
    有人可以说清楚些吗
      

  5.   


        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                for (int i = 0; i < CheckBoxList1.Items.Count; i++)
                {
                    if (CheckBoxList1.Items[i].Value == "你要选中的值")
                        CheckBoxList1.Items[i].Selected = true;
                }                 
            }
        }