Example #1
0
        private void tbAltEmail_TextChanged(object sender, EventArgs e)
        {
            String emailValue = this.tbEmail.Text;

            flag = ValidateInsertValue.checkEmail(emailValue);
            if (flag == true)
            {
                lbAltEmailvalidate.Text = "Correct";
                hasError = false;
            }
            else
            {
                if (this.tbEmail.Text != "")
                {
                    lbAltEmailvalidate.Text = "Invalid Email";
                }
                else
                {
                    lbAltEmailvalidate.Text = "";
                }
                hasError = true;
            }
        }