如何仅使asp文本框成为数字? [英] How to make a asp textbox numeric only?

查看:122
本文介绍了如何仅使asp文本框成为数字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如问题所指出的,我坚持尝试使我的文本框成为数字,但我得到了5个文本框,该文本框应只允许数字而不是字母,请帮忙

Wes

Hi, as the question states, im stuck on trying to make my text box''s numeric I got 5 text box''s that should only allow numbers no letters please help

Wes

推荐答案

可以使用正则表达式,JavaScript验证等方法实现此目的.

我希望使用Masked Textbox:增强型文本框控件 [
There are ways to make this happen, using regular expression, JavaScript validation, etc.

I would prefer Masked Textbox for it: Enhanced Textbox Control[^]


这是一个例如:

仅接受数字的文本框 [
here is an example:

Text box to accept only number[^]


这篇关于如何仅使asp文本框成为数字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆