title: CustomValidator on User Control not working
body: <p>I've set up a CustomValidator with a ClientValidationFunction as:</p>
  
  <pre><code>    &lt;asp:CustomValidator ID="CustomValidator1" runat="server" Display="Dynamic" EnableClientScript="true" ClientValidationFunction="checkClients" ErrorMessage="You must select at least one client or staff" SetFocusOnError="true"&gt;&lt;/asp:CustomValidator&gt;
  </code></pre>
  
  <p>I've set up my Javascript function as:</p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;
      function checkClients(sender, args) {
          if ($find("&lt;%= selSelectedClientFamily.ClientID %&gt;").get_items().get_count() &gt; 0) {
              args.IsValid = true;
          } else {
              args.IsValid = false;
          }
      }
  
  &lt;/script&gt;
  </code></pre>
  
  <p>I'm putting this all in a User Control which I'm dropping into a form on another page.</p>
  
  <p>When testing, the validation is firing and in fact the JS function is executed and works appropriately.  However - the form is submitted whether IsValid is true or false.  Like it's executing but not paying attention to the result.  Any ideas?</p>