ASP Form Field Input Masks Question

B

bravesplace

I have an ASP form with a form field that will take a number such as
31. Can I create an input mask that will convert a 2 digit number to
have a decimal between the digits (31 = 3.1 45 = 4.5). Any code snips
or guidance would be great.
 
M

MD Websunlimited

Hi,

The question is where do you wish to accomplish this at, the client or the server. Also, there is more to it than just inserting a
decimal point. You'll need to insure that the value is numeric.

FP can help with it's validation making sure that you have a numeric field value and can insure that the value is between 0.0 and
9.9, assuming that is the range we are speaking about. You can then augment the submit validation to add the decimal point between
the values.
 

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

Top