How to Clear All TextBoxes values without Knowing textbox id(name) ?
Control myForm = Page.FindControl("Form1"); foreach (Control ctl in myForm.Controls) if (ctl.GetType().ToString().Equals("System.Web.UI.WebControls.TextBox")) ((TextBox)ctl).Text = "";
No comments:
Post a Comment