You won't need any validation if you show, for example, the list box with items 0 to 100.
The ideal choice would be
System.Windows.Forms.NumericUpDown
, but this is not presently available for ASP.NET in the .NET FCL. But you can use, for example,
NumericUpDown
from the Ajax Control Toolkit:
http://www.asp.net/AjaxLibrary/AjaxControlToolkitSampleSite/NumericUpDown/NumericUpDown.aspx[
^].
You can try it out right on the page I referenced above and see how much it is better than the text box. No validation is always better then any validation.
—SA