----------------------
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;
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;
UserControl uc1, uc2, uc3;
using System; using System.Collections.Generic; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; protected void Page_Load(object sender, EventArgs e) { Random r = new Random(); int myRandom = r.Next(1000, 9999);
Leave a comment: