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


文章来源:http://www.cnblogs.com/wangdetian168/archive/2010/08/24/checkboxlist-item.html
posted on 2010-09-28 10:47 sanmao 阅读(209) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航:
 

常用链接

留言簿(5)

随笔分类

随笔档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜