62,242
社区成员




protected void Page_Load(object sender, EventArgs e)
{
GetCheckBoxID(this.Page);
}
protected void GetCheckBoxID(Control control)
{
foreach (Control ctl in control.Controls)
{
if (ctl is CheckBox)
Response.Write(ctl.ID + "<br/>");
if (ctl.HasControls())
GetCheckBoxID(ctl);
}
}