473,396 Members | 1,784 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

RangeValidator with currency

I've set the type of my RangeValidator to be Currency. My min to max range
is set as 0 to 99999. When I enter a value of $5, it claims it doesn't meet
the criteria. If I change it to 5, without the $ symbol, it works fine.
I'd like to allow people to enter the $ if they choose to. I tried making
the max $99999 instead of 99999, but it errors out saying that "The value
'$99999.00' of the MaximumValue property of 'rvSirSalary' cannot be
converted to type 'Currency'." LOL.

Is there a way around this?

Thanks in advance!
Mark
Nov 17 '05 #1
2 6842
Despite what the documentation says (at least in the 1.0 docs, haven't
checked the 1.1 docs), the validators don't support currency symbols. You
have to enter the value without it.

Eric
"Mark" <fi**************@umn.edu> wrote in message
news:eC**************@TK2MSFTNGP12.phx.gbl...
I've set the type of my RangeValidator to be Currency. My min to max range is set as 0 to 99999. When I enter a value of $5, it claims it doesn't meet the criteria. If I change it to 5, without the $ symbol, it works fine.
I'd like to allow people to enter the $ if they choose to. I tried making
the max $99999 instead of 99999, but it errors out saying that "The value
'$99999.00' of the MaximumValue property of 'rvSirSalary' cannot be
converted to type 'Currency'." LOL.

Is there a way around this?

Thanks in advance!
Mark

Nov 17 '05 #2
Use a regular expression validator intead.

"Mark" <fi**************@umn.edu> wrote in message
news:eC**************@TK2MSFTNGP12.phx.gbl...
I've set the type of my RangeValidator to be Currency. My min to max range is set as 0 to 99999. When I enter a value of $5, it claims it doesn't meet the criteria. If I change it to 5, without the $ symbol, it works fine.
I'd like to allow people to enter the $ if they choose to. I tried making
the max $99999 instead of 99999, but it errors out saying that "The value
'$99999.00' of the MaximumValue property of 'rvSirSalary' cannot be
converted to type 'Currency'." LOL.

Is there a way around this?

Thanks in advance!
Mark

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: charliewest | last post by:
I've configured a RangeValidator control on a WebForm, using ASP.NET, and have set the type to string, the max value to 100, and min value to 1, however, the control to validate always throws an...
2
by: Johannes Hammersen | last post by:
Hi, when I try to set the Minimum Date on a RangeValidator to 01.01.0001 I get an error, that 01.01.0001 can not be converted to a date. But the DateType can be 01.01.0001....
1
by: BobRoyAce | last post by:
I have a RangeValidator control on a page that is supposed to make sure that the user does not enter a value outside of the range 0-nn.nn, where nn.nn is some monetary value. For example, let's say...
1
by: COHENMARVIN | last post by:
I'm trying to get a rangevalidator to work. Normally this is easy, but here I'm trying to make the rangevalidator check a range that is from variables. Here is the code. Its simple, but it...
11
by: Axel Dahmen | last post by:
Hi, I'm working in a team developing an international website. When I set the page's CultureInfo to Hungarian (hu-HU) then the RangeValidator doesn't seem to be able to parse a TextBox's date...
1
by: Cirene | last post by:
Here's my RangeValidator <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtSVDV" ErrorMessage="RangeValidator" MaximumValue="0" MinimumValue="-100" Type="Double">Make...
1
by: Cirene | last post by:
I have a rangevalidator as follows... <asp:RangeValidator ID="RangeValidator4" runat="server" ControlToValidate="InvoicePriceTextBox" ErrorMessage="0-999999" MaximumValue="999999"...
1
by: =?Utf-8?B?SGlwSG9wcGVy?= | last post by:
Hi, I have a composited control with a Textbox and a Rangevalidator. If I am not mistaken, Rangevalidator should take currency ($) symbol, but I got the validation error when user enter -$100...
1
by: =?Utf-8?B?SGlwSG9wcGVy?= | last post by:
Hi, What's the Minimum and Maximum value for RangeValidator currency type? For example form -99,999,999,999,999 to 99,999,999,999,999? -- HipHopper
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.