private void HideControls(){ foreach (Control c in Controls) { if (c.Controls.Count > 0) { } else { if (c.Visible) { foreach (BUI.ApplicationHiddenField d in ApplicationHiddenFieldCollection) { if (d.Field.ToLower().Equals(c.Name.ToLower())) c.Visible = false; } } } }}