title: asp.net custom validator not firing for textbox
body: <p>I have both a required field validator and custom validator for validating a texbox. The required field validator fires perfectly. I'm not able to get the custom validator to fire properly?</p>
  
  <pre><code>&lt;asp:TextBox ID="txtPRI" runat="server" Width="295" /&gt;&lt;br /&gt;
  
  &lt;asp:RequiredFieldValidator display="Dynamic" CssClass="leftAlign" SetFocusOnError="true"  runat="server" controltovalidate="txtPRI" errormessage="Please enter your PRI" /&gt;
  
   &lt;asp:CustomValidator runat="server" id="cusCustom" controltovalidate="txtPRI" onservervalidate="cusCustom_ServerValidate" Enabled="true" ValidateEmptyText="true" display="Dynamic" CssClass="leftAlign" SetFocusOnError="true"  errormessage="The text must be exactly 8 characters long!" /&gt;
  </code></pre>
  
  <p>code behind</p>
  
  <pre><code>protected void cusCustom_ServerValidate(object sender, ServerValidateEventArgs e)
      {
          Response.Write("firing - test");
          Response.End();
  
  
          if (e.Value.Length == 8)
              e.IsValid = true;
          else
              e.IsValid = false;
      }
  </code></pre>