Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old August 8th, 2012, 12:02 PM
Authorized User
Points: 265, Level: 5
Points: 265, Level: 5 Points: 265, Level: 5 Points: 265, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2010
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default Mobile Number Validations

I have textbox for Mobile number. I would like to put validations through regual expression.
There are three condiotions for valid mobile number
1) It must have numberic character only like 1,2,3----9
2)It must be of 10 digits like 9835198351,9234302220
3) It must start with 7 or 8 or 9.
example of valid mobile numbers

Ivalid Phone nubers


I have searched a regular expression for this ^[0-9]{10}
But it fulfulling first both condition but it do not validates
3rd condition.

Please reply soon.
  #2 (permalink)  
Old September 3rd, 2012, 08:52 AM
Friend of Wrox
Points: 1,469, Level: 15
Points: 1,469, Level: 15 Points: 1,469, Level: 15 Points: 1,469, Level: 15
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Oct 2009
Posts: 341
Thanks: 14
Thanked 3 Times in 3 Posts

did not check but hope it may work. try this
  #3 (permalink)  
Old January 4th, 2013, 12:35 PM
Posts: n/a

No Comments..........

Broomfield residential painting

Aurora House Painter
Received Infraction
  #4 (permalink)  
Old January 21st, 2013, 02:04 PM
Posts: n/a

Validating mobile phone numbers in international format isn't all that easy. Numbering plans are disparate and constantly changing.

Flight Simulator Sydney

Sydney Flight Simulator

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation For Phone Number and Mobile Number dhruthi.ram99 Javascript How-To 12 October 30th, 2011 08:24 AM
In search of a Mobile Phone/ Mobile network carrier Programmer Godfrey Perl 0 July 27th, 2011 12:43 AM
how to send sms from my asp.net web application to any mobile number in india. ashsahji123 ASP.NET 3.5 Basics 0 May 28th, 2010 08:42 AM
Getting mobile phone number yukijocelyn C# 2005 0 May 29th, 2008 12:43 AM
Mobile number Validation dharmeshtandel C# 2 April 23rd, 2008 02:12 PM

All times are GMT -4. The time now is 06:25 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.