foreach (Control txtobj in this.Page.Controls) { if (txtobj.GetType().Name == "checkbox") { CheckBox ck = new CheckBox(); ck = (CheckBox)this.FindControl(txtobj.ID); if (ck.Checked == true) { //ck.Text } else { } } }
foreach (Control txtobj in this.Page.Controls) { if (txtobj.GetType().Name == "checkbox") { 后台的也可以前台来获取
required.form["NAME"];