protected void cuvEmail_ServerValidate(object source, ServerValidateEventArgs args) { if (Page.IsValid) // other client-side validation passed { Tutor objTutor = new Tutor(); if (objTutor.isEmailExist(txtEmail.Text) == true) args.IsValid = false; // Raise error else args.IsValid = true; // No error } }