Solved

How can I display thousand separatos durin typing the number

Posted on 2008-10-01
1
217 Views
Last Modified: 2012-05-05
Hi,

I need to display thousand separator durin the typing of the number in a textbox like a calculator, and also transform the number when it is called from the database to the texbox

example 8,993,994

Thanks
0
Comment
Question by:Celorza
1 Comment
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 125 total points
ID: 22615244
you should not do that while the user is typing, you should only format it when in the LEAVE event and remove the format in the ENTER event. otherwise you have to handle every keypress (like backspace, delete, ...) to reposition delimiters
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
Normally the drop down box control found in the .Net framework tools is able to select just one data and value at a time, which is displayed on the text area.   But what if you want to have multiple values to be selected in the drop down box? As …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now