Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Format number in TextBox - problem

Hello guys!, I need your help to fix this is very urgent and sorry for to use the word "urgent".

I would like to know how to fix decimal punctuation while the user writes in a number textbox. I really like to know how to do it automatically while the user writes in the textbox, without a refresh button,

For example, if the user writes 1500 in the textbox; the textbox shows 1,500.00

If the user adds an additional 0, the textbox shows 15,000.00

If the user adds an extra additional 0, the textbox shows 150,000.00, and go on this form is usually found in online banks.

I am using asp.net 2.0 and Visual web developer express 2005.

Thank you and I will wait for your kind answers,

Rock on,

( thanks for Jorge Libra for the translation )
[817 byte] By [+Pablo] at [2007-11-11 7:35:37]
# 1 Re: Format number in TextBox - problem
If you want to reformat a textbox without a postback, you'll have to use JavaScript on the client: http://www.eggheadcafe.com/articles/20031204.asp
Phil Weber at 2007-11-11 23:13:46 >
# 2 Re: Format number in TextBox - problem
thank you Phil :WAVE:
+Pablo at 2007-11-11 23:14:46 >