The Tech Pursuit
The Dev Shelf
Pages
Home
Interview Questions
About Me
June 9, 2011
Clear all Text Boxes in ASP.Net
Control myForm = Page,FindCOntrol("form1");
foreach(Control ct in myForm.Controls)
{
If(cti.GetType().ToString().Equals("System.Web.UI.WebControls.TextBox"))
((TextBox)cti).Text = "";
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment