Help developing a RegularexpressionValidator for a numeric field

A

amazononthemoon

Help, I am wanting to use a RegularExpressionValidator on a webform to only
allow a numeric value with 2 decimal points. I want to make it flexible so
the user can enter commas and numbers. ie 1,000.00 or $1000.00 or 1000.00 or
$1,000.00. The user should also be able to enter 10,000.00 or 100,000.00 or
10,000,000.00. If someone has one they use I would like to copy it :)

Thanks in advance for your help
 
B

Brock Allen

You can use the CompareValidator instead and set Type="Currency" and Operator="DataTypeCheck".
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top