Nishant Arora
How you validate Phone Number in ASP.NET?
Posted by Nishant Arora in ASP.NET Programming on Nov 26, 2012
  • 0
  • 7
  • 3186
Do you know the answer for this question? Post it below.
Guest
Posted by Neelima on Jan 18, 2013
  • 0

mostly mobile numbers in india starts with 7,8,9

^[7-9]{1}.*[0-9]{9}$

Posted by sonu singh on Dec 28, 2012
  • 0

Posted by sonu singh on Dec 28, 2012
  • 0

Posted by Neena M on Dec 10, 2012
  • 0

use Regular Expression Validator
and in its property select ValidationExpression and paste ^[01]?[- .]?\(?[2-9]\d{2}\)?[- .]?\d{3}[- .]?\d{4}$ f

Posted by Manoj Kumar on Nov 29, 2012
  • 0


ControlToValidate="txtPhone" ErrorMessage="Not a valid Mobile Number !"
ValidationExpression="\d{10}">

Enabled="True" FilterType="Custom, Numbers" TargetControlID="txtPhone" ValidChars="()-">

Posted by Manoj Kumar on Nov 29, 2012
  • 0

you can use Ajax Filtermask Extender tool for Mobile number:-
---------------------------------------------------------------

Enabled="True" FilterType="Numbers" TargetControlID="txtPhone">




you can use Ajax Filtermask Extender tool for Phone number:-
---------------------------------------------------------------

Enabled="True" FilterType="Custom, Numbers" TargetControlID="txtPhone" ValidChars="()-">


you can use regular expression validator for mobile number:-
---------------------------------------------------------------

ControlToValidate="txtPhone" ErrorMessage="Not a valid Mobile Number !"
ValidationExpression="\d{10}">

Posted by Manoj Kumar on Nov 29, 2012
  • 0

you can use Ajax Filtermask Extender tool for Mobile number:-
---------------------------------------------------------------

Enabled="True" FilterType="Numbers" TargetControlID="txtPhone">




you can use Ajax Filtermask Extender tool for Phone number:-
---------------------------------------------------------------

Enabled="True" FilterType="Custom, Numbers" TargetControlID="txtPhone" ValidChars="()-">


you can use regular expression validator for mobile number:-
---------------------------------------------------------------

ControlToValidate="txtPhone" ErrorMessage="Not a valid Mobile Number !"
ValidationExpression="\d{10}">


PRIVACY POLICY | TERMS & CONDITIONS | SITEMAP | CONTACT US | ABOUT US | REPORT ABUSE
2014© C# Corner. All contents are copyright of their authors.