title: Sequencing ASP.NET custom validators and difference between Validator's Text and ErrorMessage properties
body: <p>I have a <code>TextBox</code> with two validators. The first validator checks if the <code>TextBox</code> is empty or not. The second validator checks that the value of <code>TextBox</code> contains spaces or not. But when I run the project and try to validate without any text in <code>TextBox</code>, it shows both validators' error messages. What I want is that it should not execute second validator until the first validator is validated successfully. </p>
  
  <pre><code>&lt;asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="TextBox3" ErrorMessage="Please enter some value." Font-Names="Segoe UI" OnServerValidate="CustomValidator1_ServerValidate" SetFocusOnError="True"&gt;&lt;/asp:CustomValidator&gt;
  &lt;br /&gt;
  &lt;asp:CustomValidator ID="CustomValidator2" runat="server" ControlToValidate="TextBox3" ErrorMessage="Spaces are not allowed." Font-Names="Segoe UI" OnServerValidate="CustomValidator2_ServerValidate" SetFocusOnError="True"&gt;&lt;/asp:CustomValidator&gt;
  &lt;br /&gt;
  </code></pre>
  
  <p>So my questions are:</p>
  
  <p>How can I sequence the validations so that one validation should be called after other is validated successfully?</p>
  
  <p>Another question that I want to ask is that what is the difference between Validator's Text and ErrorMessage properties?</p>