Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to know the Mobile Operator with the mobile Number
Posted
Comments
senguptaamlan 21-Oct-12 14:26pm    
do you have any code or any solution in hand ..... in codeproject the guys provide solution when you are stuck with some code or technical challenge....here you are asking for a total solution...which is not acceptable...please take sometime to work with the search engines.

1 solution

As per my knowledge initial 4 number are reserved for each company operator.so u can use a table to store number and operator name in your Database and then use according to your requirement.
a sample use of this is:
C#
Console.WriteLine("Enter mobile number with Country code");
          string r = Console.ReadLine().Substring(0,4);
          Console.WriteLine(r);
          switch(r)
          {
              case "8050":
                  Console.WriteLine("Docomo");
                  break;
              case "9216":
                  Console.WriteLine("Hutch");
                  break;
              case "8020":
                  Console.WriteLine("Vodaphone");
                  break;
              default:
                  Console.WriteLine("Not in use");
                  break;
          }
          Console.ReadLine();
 
Share this answer
 
Comments
Nelek 21-Oct-12 17:05pm    
That could be true some time ago, but there is something called portability that allows you to move your number with you when changing the company, so such a relation is not necessarily true

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