title: Disable ValidationSummary For Certain Validators
body: <p>The ValidationSummary panel shows up, even if the validator does not have an 'ErrorMessage'. When I click on Submit with invalid login, the error shows up in summary. That part's fine. When I submit with empty textboxes, it should show only the '*', but it also shows an empty summary panel. How can I prevent this. [Have a css class for .summary,header, summary ul, .summary ul li].</p>
  
  <p>JS:</p>
  
  <pre><code>function validateTextBox(sender, args) {
          var target = document.getElementById(sender.controltovalidate);
          var is_valid = target.value != "";
          if (is_valid) {
              target.className = "";
          }
          else {
              target.className = "validate";
          }
          args.IsValid = is_valid;
      }
  </code></pre>
  
  <p>ASPX:</p>
  
  <pre><code>&lt;asp:ValidationSummary ID="vs" runat="server" CssClass="summary"   
   ValidationGroup="vsGroup" DisplayMode="BulletList" EnableClientScript="true" 
   HeaderText="&lt;div class='header'&gt;&amp;nbsp;&amp;nbsp;Please Correct The 
   Following&lt;/div&gt;" /&gt;
  
   &lt;asp:TextBox ID="txtSurname" runat="server" class=""&gt;&lt;/asp:TextBox&gt;
   &lt;asp:CustomValidator ID="CustomValidator1" runat="server" 
   ValidationGroup="vsGroup" ControlToValidate="txtSurname"  
   ClientValidationFunction="validateTextBox" Text="*" 
   ForeColor="Red" ValidateEmptyText="true" &gt;&lt;/asp:CustomValidator&gt;
  
   &lt;asp:TextBox ID="txtLogin" runat="server" class=""&gt;&lt;/asp:TextBox&gt;
   //....CustomValidator2 just as above..
   &lt;asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
   ControlToValidate="txtLogin" Text="*" ForeColor="Red" 
   ValidationExpression="^[a-z]{8,10}$" Display="Dynamic" 
   ErrorMessage="Login Does Not Match The Requirements" ValidationGroup="vsGroup" 
   EnableClientScript="true"&gt;&lt;/asp:RegularExpressionValidator&gt;
  
  &lt;asp:Button ID="btnSubmit" runat="server" Text="Submit" ValidationGroup="vsGroup" /&gt;
  </code></pre>