示例#1
0
        protected void BtnInsertRegister_Click(object sender, EventArgs e)
        {
            String   Name            = RegisNama.Text.ToString();
            String   Email           = RegisEmail.Text.ToString();
            String   Password        = RegisPassword.Text.ToString();
            String   ConfirmPassword = ConfirmPass.Text.ToString();
            String   Gender          = RegisGender.Text.ToString();
            int      ID       = RegisterController.CountData() + 1;
            Response response = RegisterController.DoRegister(Name, Email, Password, ConfirmPassword, Gender, ID);

            if (response.successStatus == false)
            {
                LabelRegister.Text = response.message;
            }
            else
            {
                Response.Redirect("../HomeView/Home.aspx");
            }
        }