This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / VB.NET,如何限制一个textbox里面只能输入3位的数字而不能是字符啊?限制长度好办,关键是如何判断输入的是000-999的数字呢?
-pcrabbit(钱不够花);
2004-2-5
(#1592621@0)
-
使用IF isNumeric来validation
-baygirl(冰淇凌);
2004-2-5
(#1592630@0)
-
谢谢。刚想了一个苯办法,判断字符值是否在“000”和“999”之间好像也可以。再试试你告诉我的方法。
-pcrabbit(钱不够花);
2004-2-5
(#1592635@0)
-
我喜欢用JAVASCRIPT直接在页面上做VALIDATION。
-ningxin0809(雁影行洲);
2004-2-5
(#1592638@0)
-
用vb.net也可以吗?好像只有作网页的时候才可以用JS来validate吧?
-pcrabbit(钱不够花);
2004-2-5
(#1592641@0)
-
可以的。
-ningxin0809(雁影行洲);
2004-2-5
(#1592646@0)
-
试验可用,谢谢。一个新问题,如何判断输入的数字小于3位呢?因为要求必须是3位的数字。谢谢先。
-pcrabbit(钱不够花);
2004-2-5
(#1592642@0)
-
Use regular expression to validate.
-jeffrey815(Smartiecat);
2004-2-5
(#1592647@0)
-
搞定,直接判断输入字符长度就可以了。呵呵,好久不写code了,都快忘光了。谢谢以上各位。
-pcrabbit(钱不够花);
2004-2-5
(#1592655@0)
-
If you learn regular expression, you can validate any type of entries in only one single step. Here, you have to validate the length, then the value... It's not efficient.
-jeffrey815(Smartiecat);
2004-2-5
(#1592661@0)
-
没学过。能不能举个例子用regular expression来validation啊?
-pcrabbit(钱不够花);
2004-2-5
(#1592708@0)
-
Used to validate email address
-jeffrey815(Smartiecat);
2004-2-5
{1353}
(#1593198@0)
-
learned a lot. thank u very much.
-pcrabbit(钱不够花);
2004-2-5
(#1593204@0)
-
use regular expression as follows:
-schen(俺品如矢);
2004-2-6
{279}
(#1593785@0)
-
正点.但我真的很烦regular expression 呐,很烦很烦
-win(秋天的菠菜);
2004-2-6
(#1593798@0)
-
Once you know a bit more you will certainly enjoy it. BTW you need to import the name space like: Imports System.Text.RegularExpressions in vb.net in order to use it.
-schen(俺品如矢);
2004-2-6
(#1593816@0)