User955742345 posted
An easier solution would be to create a user control with the field and its validator. You can then have a public property on the user control, i.e., "EnableValidation". When this is changed, enable/disable the "Enabled" property on your validator.
When creating the user control, give both the field and its validator fixed names, and set the validator to validate that field. This will never change as you use your control; all you should need to change is that property mentioned above.
Then just use your control in place of the original field on the page. The page will still validate the validator in the user control as normal. As long as the property is set after the LoadViewState and before the Render stages of the page lifecycle
(i.e., Page_Load and Page_PreRender are ok), then the validator should emit the correct code to validate the field.