Answers for "how to validate phone number in aspx"

0

how to validate phone number in aspx

<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Enter valid Phone number" ControlToValidate="TxtNo" ValidationExpression="^[01]?[- .]?(\([2-9]\d{2}\)|[2-9]\d{2})[- .]?\d{3}[- .]?\d{4}$" ></asp:RegularExpressionValidator>
Posted by: Guest on October-01-2021

Code answers related to "how to validate phone number in aspx"

Browse Popular Code Answers by Language