I am trying to set the minimum number of characters for a textbox, and if the user input dos not reach the set minimum an error must show, In i was trying to do just that using <asp:RegularExperssionValidator> but the error message is nit showing, what am i missing or doing wrong?
<asp:TextBox ID="TextBox2" runat="server" CssClass="form-control"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ErrorMessage="ID length is Less than 10" ControlToValidate="TextBox2" ValidationExpression=".{10}.*">
</asp:RegularExpressionValidator>
`
/.{10,}/