protected void cvErrorsEmails_ServerValidate(object sender, ServerValidateEventArgs e) { string[] emails = GetErrorsEmails(); Regex regex = new Regex(Settings.EmailRegex, RegexOptions.IgnoreCase | RegexOptions.CultureInvariant); foreach(string email in emails) { if(!regex.Match(email).Success) { e.IsValid = false; return; } } e.IsValid = true; }