xeviva
December 3rd, 2002, 03:45 PM
:eek:
I have a text box, into which a user can type in a quantity.
I need to validate this input to ensure that first, the text is not a letter, i.e is a number, and secondly that the number is a whole one, is an integer, not somethin like 2 or 4, but not a, or 3.5.
Right, I have figured out how to make sure that the text in a text box in a number, IsNumeric, But I still can't find any code that validates wether the text is a decimal or not. I want to except only whole numbers.
I need error reporting where the value in the txt box is a dud.
Thanks for your help.
:)
I have a text box, into which a user can type in a quantity.
I need to validate this input to ensure that first, the text is not a letter, i.e is a number, and secondly that the number is a whole one, is an integer, not somethin like 2 or 4, but not a, or 3.5.
Right, I have figured out how to make sure that the text in a text box in a number, IsNumeric, But I still can't find any code that validates wether the text is a decimal or not. I want to except only whole numbers.
I need error reporting where the value in the txt box is a dud.
Thanks for your help.
:)