foreach (Control aa in this.Form.Controls){ if (aa.GetType().ToString() == "System.Web.UI.WebControls.TextBox") { ((TextBox)aa).Text = string.Empty; }}