Пример #1
0
        protected void btnSignUp_Click(object sender, EventArgs e)
        {
            string Name         = name.Text.ToString();
            string Email        = email.Text.ToString();
            string Pass         = password.Text.ToString();
            string confPass     = conf_pass.Text.ToString();
            string Address      = address.Text.ToString();
            string Gender       = gender.Text.ToString();
            string errorMessage = "";
            bool   success      = false;

            if (vendorCheck.Checked)
            {
                success = SignUpController.trySignUp(3, Name, Email, Pass, confPass, Address, Gender, out errorMessage);
                printErrorMssg(success, errorMessage);
            }
            else
            {
                success = SignUpController.trySignUp(2, Name, Email, Pass, confPass, Address, Gender, out errorMessage);
                printErrorMssg(success, errorMessage);//halo ini test doang!!
            }
        }