110,538
社区成员
发帖
与我相关
我的任务
分享
foreach (Control ctl in this.form1.Controls)
{
//if (ctl is TextBox)
// Response.Write(((TextBox)ctl).Text.Trim() + "<br/>");
if (ctl is Label)
Response.Write(((Label)ctl).Text.Trim() + "<br/>");
//Response.Write("....");
}