62,272
社区成员
发帖
与我相关
我的任务
分享
foreach (Control a in this.form1.Controls)
{
if (a.GetType() == typeof(CheckBox))
{
if(……)
Response.Write(a.ClientID.ToString());
}
}
foreach (Control a in this.form1.Controls)
{
if (a.GetType() == typeof(CheckBox))
{
CheckBox c = a as CheckBox
if(c.Checked)
Response.Write(c.ClientID.ToString());
}
}