Numeric Box is an easy to use control that allows a developer to integrate a
textbox that only supports numerical data. This control inherits and extends
the Textbox control by adding Javascript support to not allow non-numerical data
entry. Two particular properties you may be interested in are RealNumber and
PositiveNumber. By default, Numeric Box allows all real numbers, but can easily
be changed to only accept positive whole numbers. The data entered into Numeric
Box is parsed and verified on the server whenever a postback occurs, ensuring
the data entered is valid.
This control was built with IE 5+ and Netscape 6+ in mind, and currently, has
no Javascript support for Netscape 4. Even though it isn't supported, the data
is still parsed and verified on the server.
A demo for this control is located here: View Demo