Hi,below is the pseudo code you can try.You may need to modify it a bit depending on the control id's.
public void GetControl(Control control)
{
foreach (Control ctrl in parent.Controls)
{
if (ctrl.GetType() == typeof(TextBox))
{
}
else
{
GetControl(ctrl);
}
}
}