I have a TextBox in a Panel on an aspx page.
I need to disable a RequiredFieldValidator if the textBox is not enabled.
If the Panel is disabled, and TextBox.Enabled is True, then the textbox is disabled on the page (which is fine.)
So how can I find out if the TextBox is disabled on the page if the Enabled Property is not reliable?
Note that I need a generic solution, as there may be many nested levels of containers, and the containers are not always Panels.