Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data formatting
Message
 
To
16/08/2004 11:53:48
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00933574
Message ID:
00933700
Views:
20
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform