Compare Validator - Ending With A Decimal Causes Error

Discussion in 'ASP .Net Web Controls' started by Matthew Sajdera, Nov 17, 2004.

  1. All -

    I have a couple of text boxes where users can enter numbers. The
    controls are set to do DataTypeChecks against a Double data type. If
    the user enters a number that ends with a decimal point the control
    throws an error. Preceeding the number with a decimal point is OK.

    Example:

    3.25 - OK
    ..25 - OK
    25 - OK
    25. - Error

    Any tips on how I get the control to handle (25.) without error?

    Thanks,

    - Matt
    Matthew Sajdera, Nov 17, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Xavier Osa
    Replies:
    0
    Views:
    630
    Xavier Osa
    Jan 9, 2004
  2. Ven
    Replies:
    3
    Views:
    1,319
  3. Gilbert Fine
    Replies:
    8
    Views:
    897
    Zentrader
    Aug 1, 2007
  4. Vitaliy
    Replies:
    1
    Views:
    472
    Peter Otten
    May 29, 2008
  5. valpa
    Replies:
    11
    Views:
    1,510
    Steven D'Aprano
    Mar 24, 2009
Loading...

Share This Page