title: customvalidator client side validation
body: <p>I have a custom validator and want it to validate client side on not server side.
  Here is my function :</p>
  
  <pre><code>function checkCampDockTemplate(source, args)
      {
          var campDockTemplate = document.getElementById('&lt;%= drpCampDockTemplate.ClientID %&gt;');
  
          if (campDockTemplate.selectedIndex == 0)
          {
              args.IsValid = false;
          }
          else
          {
              args.IsValid = true;
          }
      }
  
  
  
  &lt;asp:CustomValidator ID="campaignDocketTemplateCustomValidator" runat="server" ErrorMessage="Please select a Campaign Docket Template"
              ControlToValidate="drpCampDockTemplate" OnServerValidate="campaignDocketTemplateCustomValidator_ServerValidate"
              ClientValidationFunction="javascript:checkCampDockTemplate()"&gt;&lt;/asp:CustomValidator&gt;
  </code></pre>
  
  <p>Can any one please assist me on this.
  Thanks in advance.</p>