ASP中的邮件ID检查 [英] mail id checking in asp

查看:59
本文介绍了ASP中的邮件ID检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在我的项目中检查给定的mailid是否正确?



我的意思是,我需要检查给定的邮件ID是否真实?这怎么可能?



gmail如何进行此类检查.

how can i check the given mailid is correct or not in my project?



what i mean is ,i need to check the given mail id is real or not?how it is possible?



how gmail doing these type of checking.

推荐答案

使用 ^ ].
尝试使用\w+([_.]\w+)*@\w+([-]\w+)*\.\w+([-.]\w+)*表达式,或根据您的约束对其进行修改.
Use RegularEexpressionValidator[^].
Try \w+([_.]\w+)*@\w+([-]\w+)*\.\w+([-.]\w+)* expression, or modify it as per your constraints.


用户项目中的用户正则表达式验证器控件

看到此链接
http://msdn.microsoft.com/en-us/library/ff664382 (v = PandP.50).aspx [
user Regular Expression Validator control in your project

see this link
http://msdn.microsoft.com/en-us/library/ff664382(v=PandP.50).aspx[^]

Thanks


就真实而言,您永远无法判断地址是否有效".正如其他人所说,您可以使用正则表达式查看其格式是否正确.这就是网站向人们发送链接以进行确认的原因,这是做到这一点的唯一方法.

ASP和ASP.NET是两个不同的东西.
You cannot EVER tell if an address is ''valid'' in terms of being real. You can use regex to see if it is well formed, as others have said. That''s why sites send people a link to confirm, that''s the only way to do it.

ASP and ASP.NET are two different things.


这篇关于ASP中的邮件ID检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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