Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • *Experts*
Posted
Look into the RegularExpressonValidator control. You only have to type in the pattern that it will accept and it do all validating for you.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...