Validation

hys

Member
Joined
Apr 10, 2003
Messages
7
Hello,

I was wondering if anyone know of a way I can validate that the user has entered a currency amount..

I need it to validate that it is a currency:

possible entries include

$5
5.00
$5.00
5
5.0
$5.0

all above entries are variations of $5.00

and if the entry is not in the format of $x.xx then i need to format that to be able to import into database
 
Look into the RegularExpressonValidator control. You only have to type in the pattern that it will accept and it do all validating for you.
 
Back
Top