RangeValidator not accept currency?

C

Cirene

I have a rangevalidator as follows...

<asp:RangeValidator ID="RangeValidator4" runat="server"
ControlToValidate="InvoicePriceTextBox"
ErrorMessage="0-999999"
MaximumValue="999999" MinimumValue="0"
Type="Currency"></asp:RangeValidator>

Why can't the user type in "$28.84"? Doesn't "Currency" allow for the
dollar sign?
 
M

Munna

I have a rangevalidator as follows...

<asp:RangeValidator ID="RangeValidator4" runat="server"
ControlToValidate="InvoicePriceTextBox"
ErrorMessage="0-999999"
MaximumValue="999999" MinimumValue="0"
Type="Currency"></asp:RangeValidator>

Why can't the user type in "$28.84"? Doesn't "Currency" allow for the
dollar sign?

Hi

i have tried and face the same problem in one of my project.
i get rid of such problem by implementing a custom validator
and write my own javascript validation code

Best of luck

Munna
www.munna.shatkotha.com
www.munna.shatkotha.com/blog
www.shatkotha.com
 

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

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top