Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework.aspnet.mobile
DataFormatString to format Phone Number
crpietschmann
12/5/2006 4:09:00 PM
I am showing a phone number field in an ObjectList control. I am trying to
format the phone number using the DataFormatString, but I am having problems
getting it to work. I need to to be formatted like this: 555-555-5555
I have the Phone Number field saved in the database as a varchar so it is
coming across in the data binding as a string.
Here's an example of what's coming from the database:
4145555555
I have tried the following DataFormatString values with no avail:
###-###-####
{0:###-###-####}
{0:###'-'###'-'####}
{0:000-000-0000}
{0:nnn-nnn-nnnn}
Does anyone have any ideas?
--
Chris Pietschmann
http://piets...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
DataFormatString to format Phone Number
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password