如何在C#.NET中验证电子邮件地址Web窗体 [英] How to validate Email Address Web Form in C#.NET
本文介绍了如何在C#.NET中验证电子邮件地址Web窗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想要这样的例子
ppp@gmail.com
ppp.ddd@gmail.com
ppp23@gmail.com
这种类型的电子邮件只能接受
解决方案
嘿,
你可以使用正则表达式验证器。
它会帮助你
祝你好运
你好,
你可以使用正则表达式:\ b [A-Z0-9 ._%+ - ] + @ [A-Z0-9.-] + \。[AZ] {2,4} \b
或者你可以使用C#.Net的内置验证,你可以在:
工具箱 - >验证 - > RegularExpressionValidator
-AJV King
( Vinco Source )
试试这个
//以编程方式验证
http://www.c-sharpcorner.com/uploadfile/40e97e/verify-email-在线/
或
使用正则表达式进行电子邮件地址验证
http://www.codeproject的.com /文章/ 5189 /有效-电子邮件地址验证
i want example like this
ppp@gmail.com
ppp.ddd@gmail.com
ppp23@gmail.com
this type of email only it can accept
解决方案
Hey,
U can Use Regular Expression Validator for this.
it will help u
best luck
Hello,
You can use Regular expression: \b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b
or you can use the in-build validations of C#.Net, you can find it under:
Toolbox -> Validation -> RegularExpressionValidator
-AJV King
(Vinco Source)
try this
//programmatically verify
http://www.c-sharpcorner.com/uploadfile/40e97e/verify-email-online/
or
Email Address Validation Using Regular Expression
http://www.codeproject.com/Articles/5189/Effective-Email-Address-Validation
这篇关于如何在C#.NET中验证电子邮件地址Web窗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文