Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Formatting Int'l phone numbers
Message
De
08/06/2010 07:03:44
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01467795
Message ID:
01467848
Vues:
52
>Does anyone have a class for formatting Int'l phone numbers that they'd be willing to share. I'd like to have something for formatting display and also for Masked Edit validators. Looking primarily for English speaking countries (Canada, UK, Autralia, New Zealand)

Yes it is called textbox:) Sort of kidding. As an international user I have always hated to be forced to use USA phone number masks (and also enter state). IMHO when it is phone number leave the user alone. Do not apply any mask. They are humans wise enough to enter a phone number without some machinery forcing them to a specific template. What would you do forcing the template? Do math on them? Search by area code? (If so provide separate area code). What if I would like to enter a phone number using letters (there are companies allocating numbers that represent their name, no). Such as 1-800-VERIZON (I don't really know if that matches USA number or it exists, just a guess). A human would find it easy to write and read.
My 0.2 cents.

PS: On internet there was a regexp pattern for it - and I sort of had the same comment there.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform