Disable all Validator controls on a page

asp.net, validation

Solution

Set up a javascript to get all the validator controls in your page and set their value to false in a for loop, something like this would work

function DisablePageValidators()
{   
 if ((typeof(Page_Validators) != "undefined") && (Page_Validators != null)) 
  {
    var i;
    for (i = 0; i < Page_Validators.length; i++) {
        ValidatorEnable(Page_Validators[i], false);
    }
  }
}

Problem

During the early stages of a dev cycle, it's a bit annoying to have all the validation controls enforcing their rules if we just want to move quickly from form to form. What is the simplest way to disable all the validator controls on a page?

Original source