G
Guest
Hi,
I am trying to iterate though the controls on a content page that has a
master page so I can disable text. If it weren't on a content page it is
simple:
foreach (Control c in Page.Controls)
{
if (c is TextBox)
{
(TextBox)c.Enabled = false;
}
}
I can't figure out how to get the ClientID into this to deal with the
mangled names.
thanks,
Bill
I am trying to iterate though the controls on a content page that has a
master page so I can disable text. If it weren't on a content page it is
simple:
foreach (Control c in Page.Controls)
{
if (c is TextBox)
{
(TextBox)c.Enabled = false;
}
}
I can't figure out how to get the ClientID into this to deal with the
mangled names.
thanks,
Bill