CompareValidator not working
- From: "tshad" <tfs@xxxxxxxxxxxxxx>
- Date: Sun, 4 Dec 2005 22:22:18 -0800
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
.
- Follow-Ups:
- Re: CompareValidator not working
- From: Patrick.O.Ige
- Re: CompareValidator not working
- Prev by Date: RE: Question about "Configuration Error" Message
- Next by Date: Trying to figure out forms authentication
- Previous by thread: Could not connect to mail server System.Web Could not access 'CDO.Message' object. ?????
- Next by thread: Re: CompareValidator not working
- Index(es):
Relevant Pages
|