protected void Page_Load(object sender, EventArgs e)
...{
foreach (Control ctl in Page.Controls[0].Controls)
...{
if (ctl.GetType().Name == "TextBox")
...{
TextBox tb = new TextBox();
tb = (TextBox)this.FindControl(ctl.ID);
tb.Text = "";
}
}
}
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/sntyy/archive/2008/02/28/2129761.aspx