Click here to Skip to main content
15,901,205 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Mobile Number Textbox1

in that mobile number if user type the mobile number start with 0 and user does not type 10 digit mobile number completely.


1 st Example

Mobile Number 0

2nd example;
Mobile Number 9840567

that time user click the insert button i want to show the message"Enter Correct Mobile Number";

how to do in asp.net with c sharp .help me.
Posted

1 solution

This can be done using javascript:
Check below links:
javascript-check-indian-mobile-number-validation.aspx[^]
how-to-validate-cell-number[^]
http://www.dotnetbull.com/2011/08/validating-mobile-number-using.html[^]
Validating-Cell-number-using-javascript[^]

Advanced Validation:
validate-mobile-no-in-javascript[^]

Please note: All the links work for Indian mobile numbers only.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900