.net 获取checkBoxList 选中的值

public string GetCheckBoxListValues(ListControl lc)
        {
            string tempValues = "";
            foreach (ListItem li in lc.Items)
            {
                if (li.Selected)
                    tempValues += li.Value+",";
            }
           tempValues = tempValues.Trim(',');
           return tempValues;
        }

posted on 2010-08-12 11:20 sanmao 阅读(661) 评论(0)  编辑  收藏

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


网站导航:
 

常用链接

留言簿(5)

随笔分类

随笔档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜