Hi Still You have to write a collection of all your text box, Imagine you have some data entry form which has around 50 text boxes then ?
public void BlankAllTextBoxControls(ControlCollection col)
{
foreach (Control item in col)
{
if(item==null) return;
if (item.HasControls()) BlankAllTextBoxControls(item.Controls);
else if (item is TextBox) ((TextBox)item).Text = string.Empty;
}
}
and just call this method for the container to reset all the textbox value.
In case you have a panel and you want to reset
BlankAllTextBoxControls(Panel1.Controls);
For the whole page it can be extended
BlankAllTextBoxControls(Page.Controls);