asp.net text box for decimals

  • Thread starter Thread starter Brent Burkart
  • Start date Start date
B

Brent Burkart

Does anyone know how to create a textbox which shows a fixed decimal
position? In other words I want to show the format necessary with a decimal
in position and when they hit the decimal, it moves the cursor to the right
side of the decimal. Is this possible?

Thanks,
Brent
 
There is no support for this in the framework, so what you would need to do
is create a javascript handler that trapped the onkeydown property and
performed the formatting that you are looking for.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top