title: How to set custom validator isValid property on Client Side?
body: <p>I am having a problem setting the customvalidator on client side.
  based on a particular hidden field value, the onClientClick event of a button should be firing a function which sets the isValid property of a CustomValidator to false.</p>
  
  <p>Below is some code : 
  Code Behind :</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
      if (hiddenfieldValue == true)
      {
          btnSend.OnClick = "someJavascriptFunction()";
      }
  }
  </code></pre>
  
  <p>ASPX File : </p>
  
  <pre><code>function someJavascriptFunction()
  {
      if (hiddenfieldValue == true)
        // Show Validation and dont do postback
        vldValdiator.isValid = false; 
        return false;   //Dont do Postback
      else
        return true; Do Postback
  }
  
  &lt;asp:CustomValidator ID="vldValidator" runat="server" Text = "ABC"/&gt;
  </code></pre>
  
  <p>I am not able to set the isValid property on client side based hidden field values.
  Please Help . Thanks in advance.</p>