后台代码:

for (int i = 0; i < this.GvCourses.Rows.Count; i++)
{
    CheckBox chb = this.GvCourses.Rows[i].FindControl("CheckB") as CheckBox;
    if (chb.Checked)
    {
        strDelete += "," + this.GvCourses.Rows[i].Cells[0].Text;
    }
}

 

前台代码:

<asp:CheckBox runat="server" ID="CheckB" />

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-28
  • 2021-08-04
  • 2021-05-26
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-29
  • 2022-12-23
  • 2021-08-31
  • 2022-12-23
  • 2021-11-23
相关资源
相似解决方案