CompareValidator not working



The CompareValidator doesn't seem to work correctly.

I have the following to compare 2 controls that are Currency and no matter
what I enter, it seems to give me an error. I saw in the MSDN that Currency
is supposed to allow decimals with Currency symbols ("A decimal data type
that can contain currency symbols").

If I have:

WagesMin = $800.00
WagesMax = $10,000.00

or

WagesMin = $10,000.00
WagesMax = $800.00

I still get the Validator message.

I have the Validator set as:

<asp:CompareValidator
ControlToValidate="WagesMin"
ControlToCompare="WagesMax"
Operator="LessThanEqual"
Type="Currency"
Display="Dynamic"
Text="<br>Minumum Wage must be less than or equal to the Maximum Wage"
runat="server"/>

Why doesn't this work?

Thanks,

Tom


.



Relevant Pages

  • Re: CompareValidator not working
    ... Tom try looking at this sample at ... > The CompareValidator doesn't seem to work correctly. ... > I have the following to compare 2 controls that are Currency and no matter ... > WagesMin = $800.00 ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Compare Validator
    ... I believe the only valid types for the CompareValidator are Currency, Double, Date, Integer or String. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: fortran character set
    ... There are no currency symbols in Fortran as such. ... The problem is all the non-dollar currency symbols. ... If one is is referring to currency, a real pound sign is a ... The f2003 character set includes the hash mark but not the real pound ...
    (comp.lang.fortran)
  • Re: SUM UP DIFFERENT CURRENCIES
    ... Obviously they are numbers fomatted with different currency symbols. ... "David Biddulph" wrote: ... Total Dollars Paid ...
    (microsoft.public.excel.worksheet.functions)
  • Conditional Formating
    ... I have a number of textboxs, ... numbers and currency symbols. ...
    (microsoft.public.excel.programming)