Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data formatting
Message
 
À
16/08/2004 11:53:48
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00933574
Message ID:
00933700
Vues:
21
>I am currently using ASP.NET and I would like to add an input mask (data formatting) to some text boxes I have on my web form. i.e. Price, Date, Social Security, etc. These textboxes are not in a grid, they are simply on the form.
>
>I would like my web page to show $19,545.45 or 10/16/1964 or 554-84-5595 as they are typing the data or after they leave the textbox.
>
>How do I do this? Can someone give me a hand with this? Thank you in advance.


You will probably to subclass the Web TextBox and create a masked textbox. That is the only simple way that I know of. You may be able to purchase some controls, otherwise you will have to write one.

I've written one for the Windows UI, and I made heavy use of Regular Expressions for handing the formatting and everything.

Morgan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform