title: Why ClientValidationFunction function is not working properly?
body: <pre><code>&lt;script type="text/javascript"&gt;
      function clientValidation(sender, arguments)
      {
          if (arguments.value == "hello world")
              arguments.isvalid = true;
          else
              arguments.isvalid = false;
  
          alert(arguments.isvalid);
      }
  &lt;/script&gt;
  
  &lt;asp:Label ID="lblName" runat="server" Text="Enter Your Name" /&gt;
  &lt;asp:TextBox ID="txtbxName" runat="server" /&gt;
  &lt;asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="You are Not allowed" Display="None" ClientValidationFunction="clientValidation" ValidationGroup="ValidationSummary1" /&gt;
  &lt;br /&gt;
  &lt;asp:Label ID="lblClass" runat="server" Text="Class" /&gt;
  &lt;asp:TextBox ID="txtClass" runat="server" /&gt;
  &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please enter Clas" ControlToValidate="txtClass" Display="None" ValidationGroup="ValidationSummary1" /&gt;
  &lt;br /&gt;            
  &lt;asp:ValidationSummary ValidationGroup="ValidationSummary1" ID="ValidationSummary1" runat="server" /&gt;
  &lt;br /&gt;
  &lt;asp:Button ID="Button1" runat="server" Text="Validate" ValidationGroup="ValidationSummary1" /&gt;
  </code></pre>