how to restrict textbox with specific format using asp.net regular expression validator
I have text which is binded to asp.net regular expression validation. I want max length of character as 13 and want to have format like xx/xxxxx-xxxx This are valid formats 33/34567-1 33/12345-12 33/12345-123 33/12345-1234 I tried this <asp:TextBox ID="txt1" runat="server" OnTextChanged="txt1_TextChanged" class="textNormal" MaxLength="13" Width="100"></asp:TextBox> (xx/xxxxx-xxxx) <br /> <asp:RegularExpressionValidator ID="regexValidator1" runat="server" ErrorMessage="Must be in format xx/xxxxx-xxxx" … Read more