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
精彩评论