RangeValidator not accept currency?

  • Thread starter Thread starter Cirene
  • Start date Start date
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?
 
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
 
Back
Top