现在的位置: 首页 > 综合 > 正文

循环增加checkboxlist的选项

2012年12月15日 ⁄ 综合 ⁄ 共 321字 ⁄ 字号 评论关闭

循环增加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 ));
            }
          
        }

抱歉!评论已关闭.