我要遍历一个页面控件 但是这个页面引用了一个母板页 该怎么遍历 直接
foreach (Control ctl in this.page.Controls)
{
if (ctl is CheckBox)
{
CheckBox t = (CheckBox)ctl;
if (t.Checked == true)
{
string a = t.Text;
}
}
} 找不到
foreach (Control ctl in this.page.Controls)
{
if (ctl is CheckBox)
{
CheckBox t = (CheckBox)ctl;
if (t.Checked == true)
{
string a = t.Text;
}
}
} 找不到
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货