----------------------
Code:
UserControl[] ucs = new UserControl[3] = {uc1, uc2, uc3);
foreach(UserControl uc in ucs)
{
foreachforeach (Control c in uc.FindControl("PnlTab1").Controls)
{
if (c is TextBox)
((TextBox)c).Enabled = true;
Leave a comment: