Multiple Email Validation tagged posts

Regular Expression For Multiple Email Id in Asp.net

Category: ASP.NET Comments: No comments

Sometimes we need to check multiple email id separated by comma using Asp.net regular expression.
Solution is below:

<asp:TextBox ID=”txtEmailAddress”  runat=”server” ></asp:TextBox>

<asp:RegularExpressionValidator ID=”RegularExpressionValidator1″ runat=”server” ControlToValidate=”txtEmailAddress”
ErrorMessage=”Invalid email address.” ValidationExpression=”\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*([;]\s*\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)*”
CssClass=”NormalRed” Display=”Dynamic”></asp:RegularExpressionValidator>

Read More