Results 1 to 3 of 3

Thread: Number Validation

  1. #1

    Thread Starter
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018

    Number Validation

    I have a text filed and on submitting the field I just want to check to ensure it is a number.

    Either floating point or integer.

    "12.9", "10000"

    Hmmmmm

    I'm and idiot, I know.

    Parksie

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Use a CompareValidator.
    Set the Operator property to DataTypeCheck
    Set the type to whatever you need, probably double or currency.

  3. #3
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    Or you could use the IsNumeric function, but Hellswraith's way saves a trip to the server, by doing it client-side.
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

Posting Permissions

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



Click Here to Expand Forum to Full Width