我如何使用有效的电子邮件ID验证我的文本框。 [英] How I validate my text box with valid email id .
本文介绍了我如何使用有效的电子邮件ID验证我的文本框。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望验证我的文本框中有效的电子邮件ID表示不接受12@1.1 ....
如果我输入1 @ f.in接受...
它的代码是什么,它不接受数字ID ...
plz rpl ..
I want validate my text box with valid email id means not accept 12@1.1....
if i enter 1@f.in it accept...
what is the code for it not accept only numbers id ...
plz rpl..
推荐答案
尝试使用正则表达式
ValidationExpression =\ w +([ - +。&] \ w +)* @ \w +([ - 。] \ w +)* \。 \w +([ - ] \w +)*([,;] \s * \w +([ - +] \w +)* @ \w +([ - ] \w +) * \.\w +([ - 。] \w +)*)*
Try using regular expression
ValidationExpression="\w+([-+.&]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*([,;]\s*\w+([-+.&]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)*"
你好,
听说关于正则表达式?
http://regexlib.com/ DisplayPatterns.aspx?AspxAutoDetectCookieSupport = 1 [ ^ ]
http://www.regula r-expressions.info/email.html [ ^ ]
使用正则表达式验证电子邮件地址 [ ^ ]
问候
Sebastian
Hello,
Heard about Regular Expression ?
http://regexlib.com/DisplayPatterns.aspx?AspxAutoDetectCookieSupport=1[^]
http://www.regular-expressions.info/email.html[^]
Email Address Validation Using Regular Expression[^]
Regards
Sebastian
尝试使用正则表达式验证器
,验证表达式为\w +([ - +。''] \w +)* @ \ w +([ - 。] \ w +)* \。\ w +([ - 。] \ w +)*
ASP.NET中的RegularExpressionValidator [ ^ ]
希望它有所帮助。
Hi,
try withregular expression validator
with validation expression as\w+([-+.'']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*
RegularExpressionValidator In ASP.NET[^]
hope it helps.
这篇关于我如何使用有效的电子邮件ID验证我的文本框。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文