protected void SignUp_Click(object sender, EventArgs e) { UserRespository userRespository = new UserRespository(); UserManager userManager = new UserManager(txtName.Text, txtNumber.Text, txtEmail.Text, txtPassword.Text); if (userRespository.SignUp(userManager)) { Response.Write("<script>alert('Registration successful');</script>"); } else { Response.Write("<script>alert('Registration Failed');</script>"); } }