开发者

ListView validate email address

开发者 https://www.devze.com 2023-03-08 08:33 出处:网络
I\'m using ASP.NET ListView. Users will enter email address like shown below: abc@example.com;abcdedf@example.com;abcedefe@example.com

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

精彩评论

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