title: Asp .net Validation controls
body: <p>I have one text box and these asp validation controls on it.</p>
  
  <pre><code>     &lt;asp:TextBox ID="txtMinLot" runat="server" CssClass="form-control" MaxLength="10" CausesValidation="false"&gt; &lt;/asp:TextBox&gt;
  
  
   &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtMinLot" ErrorMessage="Please enter min lot for Bidding" Font-Names="Arial" Font-Size="11px" Display="Dynamic" SetFocusOnError="True" ValidationGroup="check" ForeColor="Red"&gt;&lt;/asp:RequiredFieldValidator&gt;
  
  
      &lt;asp:RegularExpressionValidator ID="RegularExpressionValidator13" runat="server" ControlToValidate="txtMinLot" Display="Dynamic" ErrorMessage="Not a Valid number." Font-Size="11px" ForeColor="Red" SetFocusOnError="True" ValidationExpression="[0-9]*$" ValidationGroup="check" /&gt;
  
  
       &lt;asp:RangeValidator ID="rvLot" ControlToValidate="txtMinLot" runat="server" CssClass="result" Display="Dynamic" SetFocusOnError="True" ErrorMessage="Min Quantity should be less than Total Quantity and more than 0" Font-Size="11px" ForeColor="Red" MinimumValue="1" MaximumValue="100"&gt;&lt;/asp:RangeValidator&gt;
  </code></pre>
  
  <p>But as i type something in character both range validator as well as regular expression validator message is showing in the page. But I want to show only one message at a time</p>