Posted 03 Jun 2011
Link to this post
From searches, I see this going all the way back to asp.net non ajax. Many people want the ability to use the numeric to capture an integer. I know the decimal gets removed when you lose focus, but I would prefer to see it not accepted, like if an alpha key is hit. I know we can code keypress events and do all sorts of other stuff, but I think this is important enough to be considered a behavior of the control. For instance, if :
<NumberFormat DecimalDigits="0" GroupSeparator=""/>
Pressing the decimal point or comma should throw the error symbol and not echo the character. What do you think?