开发者

How to handle if user enter letter instead of digit?

开发者 https://www.devze.com 2023-04-03 11:10 出处:网络
I have a TextBox that should only accept digits. I added a required field validator to the TextBox so that the value cannot be empty, but开发者_高级运维 if the user enters a letter or a zero, then the

I have a TextBox that should only accept digits. I added a required field validator to the TextBox so that the value cannot be empty, but开发者_高级运维 if the user enters a letter or a zero, then the logic fails. How should I handle this?


You can use Microsoft's Mask Edit


You can use a mask input plugin

0

精彩评论

暂无评论...
验证码 换一张
取 消