I have a form with a bunch of controls (text boxes, check
boxes, etc) and I want to disable all the text boxes on
the server side. I can innumerate trough the controls but
how do I find out what type of control and disable it?
Any response would be greatly appreciated.
David.
if you can iterate through the controls, you can (supposing you gave a name
of ctrl):
if (ctrl.GetType() == typeof(TextBox))
{
((TextBox)ctrl).Enabled = false;
}
hth,
Marcelo
"David" <dav...@deweb.net> wrote in message
news:5b3801c2bbe3$22b12440$cef82ecf@TK2MSFTNGXA08...
David
>.
>