我们如何验证电子邮件texbox的电子邮件价值 [英] How we can validate email texbox for email value
本文介绍了我们如何验证电子邮件texbox的电子邮件价值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们如何验证电子邮件texbox的电子邮件值
推荐答案
真的..在800万个结果中,您找不到解决方案?
^ ]
Really.. in 8 million results you couldn''t find a solution?
GOOGLE[^]
<asp:textbox id="txt_EMail" runat="server">
<span>(e.g., abc@xyz.com)</span>
<asp:regularexpressionvalidator id="RegularExpressionValidator1" runat="server" xmlns:asp="#unknown">
ControlToValidate="txt_EMail" ErrorMessage="*" SetFocusOnError="True"
ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
请参阅以下内容,您肯定会得到解决
http://forums.asp.net/p/1185398/2022746.aspx [ ^ ]
http://social.msdn.microsoft.com/论坛/en-US/Vsexpressvcs/thread/f6caac36-1fbd-4388-b939-4ef0c67feafb [ http://www.dreamincode.net/code/browse.php?cid=25 [ ^ ]
refer the following you will definitely get slution
http://forums.asp.net/p/1185398/2022746.aspx[^]
http://social.msdn.microsoft.com/forums/en-US/Vsexpressvcs/thread/f6caac36-1fbd-4388-b939-4ef0c67feafb[^]
here you will find all the regula expressions:
http://www.dreamincode.net/code/browse.php?cid=25[^]
这篇关于我们如何验证电子邮件texbox的电子邮件价值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文