电子邮件验证不起作用 [英] Email Validation not working
本文介绍了电子邮件验证不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
当我以"test@gmail.com.com.com"输入电子邮件ID时,必填字段验证器未显示任何错误....
谁能告诉我错误是什么...
我的代码如下:
Hi
when i enter the email-id as "test@gmail.com.com.com" the required field validator is not showing any error....
can anyone please tell me what the error is...
my code is as follow:
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtemail" ErrorMessage="Please Enter Valid MailId"
Font-Size="Medium" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ValidationGroup="a">*
问候
Meenakshi
Regards
Meenakshi
推荐答案
没有错误:
test@gmail.com.com.com
是一种有效的格式电子邮件地址.例如
is a valid format for an email address. For example
public.enquiries@homeoffice.gsi.gov.uk
是一个非常有效的电子邮件地址-甚至可以使用!
检查电子邮件是否真正有效的唯一方法是向其发送消息,并查看正确的人是否响应...
is a perfectly valid email address - it will even work!
The only way to check if an email is truely valid, is to send it a message and see if the correct person responds...
,因为这是有效的电子邮件,任何电子邮件都可以包含.abc
because this is valid email any email can contain .a.b.c
这篇关于电子邮件验证不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文