private void set_mail_TextChanged(object sender, EventArgs e) { if (!home.isValidEmail(set_mail.Text)) { lbl_emailValid.Visible = true; } else { lbl_emailValid.Visible = false; } }
private void txt_email_TextChanged(object sender, EventArgs e) { if (!home.isValidEmail(txt_email.Text)) { lbl_validEmail.Text = "*Invalid Email ID"; lbl_validEmail.Visible = true; } else { lbl_validEmail.Visible = false; } }