c# - How to accept only one decimal point in a textbox? -


the textbox accept numbers , 1 decimal point.

for example textbox contains "12345.56". when period pressed second time on keyboard must not appear in textbox because textbox contains period.

[0-9]+(\.[0-9][0-9]?)? 

go regular expressions.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -