Link to home
Start Free TrialLog in
Avatar of meetpd
meetpdFlag for India

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?
SOLUTION
Avatar of JaressLoo
JaressLoo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of meetpd

ASKER

Thanks for the quick reply.

Can you please tell me which line actually does the disabling part?

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.
Avatar of meetpd

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
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You learn something new every day! :)