I have a control name stored in a database table. I would like to pass the control name I retrieve from the database and check whether the control is enabled. How do I pass the string which has the control name to the c# code and check if enabled.
If I knew the control name ahead of time I would simply do:
But if I had:
string MycontrolName = "SomeName";
How do I construct the check for the enable?