循环增加checkboxlist的选项

public void  SelectListIndex(ListControl lc,string values)
        {
            string[] tempValues = values.Split(',');
            if (tempValues.Length > 0)
            {
                foreach (string tempvalue in tempValues)
                   lc.Items.Add(new ListItem(tempvalue ,tempvalue ));
            }
          
        }

posted on 2010-08-24 14:57  bestsaler  阅读(198)  评论(0编辑  收藏  举报