Multiple EmailIds validation using C#

Posted by Gopal_nivas under ASP.NET on 10/22/2011 | Points: 10 | Views : 1765 | Status : [Member] | Replies : 1
hi..
i have mailid like this(a@gmail.com,bgmail.com,c@gmail.com,dgmailcom)
i want to validate multiple emailids in an efficient way using c#.
i am using .net2005.

need ur suggetsions with examples

regards
gopal.s




Responses

Posted by: SheoNarayan on: 10/22/2011 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Hi Gopal,

I think even if you write RegularExpression for multiple email validation that is going to be complicated and not sure if it possible too. Why not you split them with "," and loop in and validate using RegularExpresson one by one?

Use this article to learn RegularExpression validation - http://www.dotnetfunda.com/articles/article1260-b-ball-c-cat-d-dog-learning-regex-regular-expression-the-easy-wa.aspx and use http://www.dotnetfunda.com/tutorials/controls/regularexpressionvalidator.aspx to know the valid RegularExpression for email.

Hope this helps.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response