dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Format number in TextBox - problem

  1. #1
    Join Date
    Apr 2005
    Posts
    39

    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 )
    "Quid quid agis prudenter agas et respice finem"
    (Hagas lo que hagas, act˙a inteligentemente y considerando el fin)
    MyNeoReport - The "FREE" Report Generator for .NET
    http://myneoreport.sourceforge.net/
    http://www.frappr.com/vbcity

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    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
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Apr 2005
    Posts
    39
    thank you Phil
    "Quid quid agis prudenter agas et respice finem"
    (Hagas lo que hagas, act˙a inteligentemente y considerando el fin)
    MyNeoReport - The "FREE" Report Generator for .NET
    http://myneoreport.sourceforge.net/
    http://www.frappr.com/vbcity

Similar Threads

  1. Replies: 0
    Last Post: 09-08-2003, 01:23 AM
  2. Replies: 0
    Last Post: 08-28-2003, 11:15 PM
  3. Replies: 2
    Last Post: 11-19-2002, 08:49 PM
  4. Replies: 255
    Last Post: 02-13-2002, 08:32 PM
  5. TextBox and language problem
    By Kotb in forum VB Classic
    Replies: 0
    Last Post: 10-24-2001, 12:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center