RangeValidator with currency

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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


    Mark Guest

  2. Similar Questions and Discussions

    1. format currency
      Hello All & Greetings. Can someone pl tell me in a hurry how I can format a currency item in 2 decimal places. thanks in advance. RK
    2. cfinput validation for currency
      hi, after consulting my CF book and doing multiple searches here i can't find what the cfinput validation attribute is for currency... surely...
    3. Currency Converter
      Hi, I am looking for a free and customizable currency converter for my website. In particular I would like to be able to change the language and...
    4. currency formatting
      Hi guys, i'm trying to format the output of a record in access, which i am pulling from through php (odbc) and the formatting is set at 4 decimal...
    5. Format Currency in ASP?
      Is there an easy way to format a number into a currency display style eg: $100,000. I have this set in my Access database on the field but my asp...
  3. #2

    Default Re: RangeValidator with currency

    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" <field027_nospam_@umn.edu> wrote in message
    news:eCs0JQvRDHA.1576@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
    >
    >

    Eric Guest

  4. #3

    Default Re: RangeValidator with currency

    Use a regular expression validator intead.



    "Mark" <field027_nospam_@umn.edu> wrote in message
    news:eCs0JQvRDHA.1576@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
    >
    >

    David Waz... Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139