by pietman
13. October 2011 11:24
private void RecursDisableCtrls(Control ctr)
{
if (ctr.Controls.Count > 0)
foreach (Control ee in ctr.Controls)
{
RecursDisableCtrls(ee);
}
{
if (ctr is WebControl)
{
if ((ctr as WebControl).ID == "ButtonCancel") //exclude this butt e.g.
return;
(ctr as WebControl).Enabled = false;
}
}
}
59f36645-08c0-46dd-a5e9-38f5f9d2d357|0|.0
Tags:
c#