循環增加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 閱讀(221) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 通江县| 襄樊市| 沙坪坝区| 清徐县| 洪洞县| 聂拉木县| 枞阳县| 措美县| 大城县| 九寨沟县| 赞皇县| 建阳市| 宝丰县| 旬阳县| 仁布县| 海林市| 嘉禾县| 吉安县| 南丰县| 鄂伦春自治旗| 武强县| 简阳市| 宁明县| 莱阳市| 新竹县| 扎赉特旗| 哈巴河县| 阳朔县| 高唐县| 宁晋县| 揭东县| 隆德县| 波密县| 镶黄旗| 焦作市| 潼南县| 德钦县| 新龙县| 塔城市| 沂南县| 禹州市|