循環(huán)增加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)  編輯  收藏

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


          網(wǎng)站導航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 衡阳市| 开阳县| 仪陇县| 湖北省| 阳西县| 赫章县| 荣昌县| 长丰县| 乌鲁木齐县| 深水埗区| 承德市| 凤山县| 岳普湖县| 舞阳县| 三都| 阳城县| 丹棱县| 台南市| 宣武区| 新田县| 元谋县| 临沧市| 黔西| 九龙坡区| 泽普县| 施甸县| 平邑县| 宁化县| 闽清县| 晋城| 贵港市| 万州区| 宁都县| 上饶市| 长治县| 石河子市| 内黄县| 舟曲县| 原阳县| 临泽县| 信丰县|