foreach (System.Web.UI.Control control in Controls) { for (int i = 0; i < control.Controls.Count; i++) { if (control.Controls[i] is System.Web.UI.WebControls.TextBox) { System.Web.UI.WebControls.TextBox tb = (System.Web.UI.WebControls.TextBox)control.Controls[i]; tb.Text = ""; } } }