1  StringBuilder str = new StringBuilder();
2 foreach (Control ctr in this.Page.Controls[3].Controls)
3 {
4 if (ctr.GetType().Name == "CheckBox")
5 {
6 CheckBox cb = (CheckBox)ctr;
7 if (cb.Checked)
8 str.Append(cb.Text + "<br/>");
9 }
10 }
11 Literal1.Text = str.ToString();

相关文章:

  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
  • 2021-11-21
  • 2021-07-03
  • 2022-12-23
  • 2021-10-19
猜你喜欢
  • 2022-02-27
  • 2021-09-30
  • 2021-12-02
  • 2021-10-04
相关资源
相似解决方案