title: Custom Validator not firing JavaScript Function (Client-Side) in ASP. Net
body: <pre><code>&lt;asp:CustomValidator ID="CustomValidator1" runat="server" 
      ErrorMessage="Date must be set" ClientValidationFunction="ValidateDate" 
      ControlToValidate="DropDownList1" Display="Dynamic" class="errorMessage"&gt;
  &lt;/asp:CustomValidator&gt;
  </code></pre>
  
  <p>This is the custom validator, the client-side function is called <code>ValidateDate</code>.</p>
  
  <pre><code>function ValidateDate(sender, args) {
      args.isValid = false;
  }
  </code></pre>
  
  <p>I wrote this function both in a separate .js file, and in the .aspx file, yet it's not working.</p>
  
  <p>Of course the validation will be bigger, I'm just making a test.</p>