void CleareAllcontrolsRecursive(Control container)
{
foreach (var control in container.Controls)
{
if (control is TextBox)
{
((TextBox)control).Text = string.Empty;
}
}
}
call CleareAllcontrolsRecursive(panelcontrol) method in button click event..
and all controls should be in Panel tag...