//Email is required
if (Email.Trim().Length == 0)
{
validationErrors.Add("The email address is required.");
}
else
{
if (entUserAccountData.IsDuplicateEmail(db, ID, Email))
{
validationErrors.Add("The email address must be unique.");
}
else
{
if (Email.IndexOf("@") < 0)
{
validationErrors.Add("The email address must contain the @ sign.");
}
else
{
string[] emailParts = Email.Split(new char[] { '@' });
if ((emailParts.Length != 2) ||
(emailParts[0].Length < 2) ||
(emailParts[1].ToUpper() != "V2.COM"))
{
validationErrors.Add("The email address must be in the format
[email protected]");
}
}
}
}
}
i'm getting error as email must be in the format
[email protected] anyone help me
Thanks in Advance