I have the following RegularExpressionValidator
to allow only 4 digits number.
<asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="txtPinCode" Display="Dynamic" ErrorMessage="Please make sure to select a PIN with four numeric digits" ValidationExpression="^\d{4,4}$" CssClass="caption">4 Digits Pincode</asp:RegularExpressionValidator>
It does Validate but doesn't show the error message:
Please make sure to select a PIN with four numeric digits
Instead Keeps showing the text 4 Digits Pincode
. I want this text to get replaced by the Error message. Whats wrong?