Posted on: 3/12/2015 5:33:40 PM | Views : 581

I have a number of controls (text boxes, dropdown lists, etc) on a page that have unnamed required input validators assigned in code-behind based on a database entry.
Now, on the client side, I need to be able to find the validator associated with a control so I can disable the validator in certain circumstances (In this case, it's the U.S. State dropdown that is required if the Country Dropdown has "USA" selected but not required if non-usa country is selected -- I already have the code enabling/disabling the dropdown).
The validators are not named and are associated with the control in another function written long ago... So, how do I find the name/id of the validator at runtime? (Or, it code-behind so I can write some javascript to the DOM from codebehind with the validator's ID in it?)
Or is there a better way?
TIA,

Go to the complete details ...