验证手机号码 [英] validating mobile number
本文介绍了验证手机号码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要验证手机号码的textbox
.
它只能接受数字值,并且值必须介于10到15位之间.
I need to validate a textbox
for mobile number.
It should be accept only numeric values and values must be in between 10 to 15 digit.
推荐答案
您必须编写一个正则表达式.尝试使用Google搜索 ^ ].
继续尝试,如果仍然无法尝试,我们将为您提供进一步的帮助.
You got to write a regular expression. Try googling this[^].
Go ahead, give it a try and if you still can not make it, we''ll help you further.
选中此 ^ ]此链接也有完美解决方案的相同问题.
check this Link[^] this link has same question with perfect solution.
您好
根据您的问题标记(ASP.NET)
我建议此 [示例用法 [此扩展器中的不同选项 [
Hi
Based on your question Tag (ASP.NET)
I am suggesting This[^]
Try to Use Ajax FilteredTextBoxExtender. see the sample usage [^]
And finally have a look in different options in This Extender[^]
这篇关于验证手机号码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文