meetpd
asked on
How to enable / disable ALL controls (textboxes, dropdowns, checkboxes) on a page (on page load) based on some values in database?
Hi,
I want to disable (make it read only)
all user input controls (like textboxes, dropdowns, checkboxes, radiobuttons)
on a page (on page load) based on some value in the database.
How do I achieve this?
I want to disable (make it read only)
all user input controls (like textboxes, dropdowns, checkboxes, radiobuttons)
on a page (on page load) based on some value in the database.
How do I achieve this?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
YourControlName.Enabled = False;
Sorry. I didn't put it. That goes in ResetFields() routine.
I'm on my iPhone right now. Sorry for the brief response.
Sorry. I didn't put it. That goes in ResetFields() routine.
I'm on my iPhone right now. Sorry for the brief response.
ASKER
The way you suggested, we will have write command for each and every control..I want a way by which ALL controls are disabled in one shot...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You learn something new every day! :)
ASKER
Can you please tell me which line actually does the disabling part?