title: Validation event for asp net client side validation
body: <p>I wonder if there's a way to hookup a custom function to asp net client-side validation event, so every time validation is fired by any control I can make some magic on client-side UI</p>
  
  <p>I'm looking for a general approach to intercept page onvalidating event without setting it on every control that causes a postback</p>
  
  <p>Thank you guys</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I ended up with this function: (thanks to @Kirk)</p>
  
  <pre><code>$(document).ready(function () {
      $('form').submit(function () {
          if (typeof Page_Validators != 'undefined') {
              var errors = '';
              $.each(Page_Validators, function () {
                  if (!this.isvalid) {
                      errors += this.errormessage + '\r\n';
                  }
              });
              if (errors.length &gt; 0) {
                  Alert(errors);
              }
          }
      });    
  }); 
  </code></pre>