获得所有 - CheckBoxListGetAll

2017-02-19 14:01:03  访问(1592) 赞(0) 踩(0)


        /// <summary>
        /// 获得所有 - CheckBoxListGetAll
        /// </summary>
        /// <param name="extAspNetCheckBoxList"></param>
        /// <returns></returns>
        public string CheckBoxListGetAll
            (
                FineUI.CheckBoxList extAspNetCheckBoxList
            )
        {
            StringBuilder theResult = new StringBuilder();
            bool isFirst = true;

            foreach (FineUI.CheckItem item in extAspNetCheckBoxList.Items)
            {
                if (isFirst)
                {
                    isFirst = false;
                }
                else
                {
                    theResult.Append(",");
                }

                theResult.Append(item.Value);
            }

            return theResult.ToString();

        }


标签:获得所有 - CheckBoxListGetAll 

上一条:

下一条:


 

相关评论

评论加载中……
 

发表评论

类型:
内容:
  (Alt+Enter)
 
  ┈全部┈  
 
(显示默认分类)