Example #1
0
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            SignUpController signUpController = new SignUpController();
            SignUpModel      signUpModel      = new SignUpModel();

            signUpModel.setName(txtName.Text);
            signUpModel.setLastName(txtLastName.Text);
            signUpModel.setEmail(txtEmail.Text);
            signUpModel.setPass(txtPass.Text);
            signUpModel.setRePass(txtRePass.Text);
            signUpController.signUp(signUpModel.getName(), signUpModel.getLastName(), signUpModel.getEmail(), signUpModel.getPass(), signUpModel.getRePass());
            if (signUpController.getFlag() == 1)
            {
                lblMessage.Text = "Well Done!!";
            }
        }