asp.net: validator for an integer
Posted on 2003-03-24
hey, im using a rangevalidator right now for an integer field, and it works well enough. however, if someone enters "12,000" or "17,104,206", id like it to recognize it as an integer still.
i could do a regular expression validator for it, and then check on the server side as well to remove commas before saving it as an integer field in the database.
i was hoping there would be a way to have the rangevalidator recognize all valid integers in a range. if that isn't possible, does anyone have a regular expression handy for recognizing any validly formatted integers? (0 or greater is fine).