Monday, October 8, 2007

Clear Textbox

How to clear all the textboxes in my form


foreach (Control ctl in Page.Controls[1].Controls )
{
TextBox tb = ctl as TextBox;
if (tb!=null)
{
tb.Text = "" ;
}
}