开发者

ListView validate email address

I'm using ASP.NET ListView. Users will enter email address like shown below:

abc@example.com;abcdedf@example.com;abcedefe@example.com

I need to validate that the email addres开发者_StackOverflows is in correct format. is there any quick way of validating this. Please note, I don't have code behind, if possible I like to do this in JQuery or Javascript. it's ListView with 233 records where user can edit any record at any time.


Use a regular expression:

http://msdn.microsoft.com/en-us/library/ms972966.aspx

Here is a example for email adresses: http://www.regexlib.com/REDetails.aspx?regexp_id=16

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜