本帖最后由 mizchh 于 2013-04-03 13:27:25 编辑

解决方案 »

  1.   

    foreach (string item in svalue_array)
                {
                    foreach (ListItem ck in CheckBoxList1.Items)
                    {
                        if (ck.Text == item) {
                            ck.Selected = true;
                        }
                    }
                }
      

  2.   


     public partial class test_js : System.Web.UI.Page
        {
            protected void Page_Load(object sender, EventArgs e)
            {
                CheckBoxBind(new string[] { "运输业", "食品业" });
            }        private void CheckBoxBind(string[] checkstr)
            {
                for (int i = 0; i < chklist.Items.Count; i++)
                {
                    for (int j = 0; j < checkstr.Length; j++)
                    {
                        if (chklist.Items[i].Text == checkstr[j])
                        {
                            chklist.Items[i].Selected = true;
                        }
                    }
                }
            }
        }前台效果: