1.遍历页面中所有的TextBox,并将值设置成String.Empty 代码如下: for (int j = 0; j < this.Controls.Count; j++) { foreach (object o in Page.Controls[j].Controls) { if (o is TextBox) { TextBox txt = (System.Web.UI.WebControls.TextBox)o; txt.Text = String.Empty; } } } 2.递归遍历 代码如下: private void FindAllTextBoxByPageCont