.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;
        }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2021-06-17
  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
猜你喜欢
  • 2021-07-29
  • 2021-06-30
  • 2021-10-30
  • 2021-05-14
相关资源
相似解决方案