protected void BtnRegistrar_Click(object sender, EventArgs e) { if (ChbCondiciones.Checked) { UsuarioControlador usu = new UsuarioControlador(); LblMensaje.Text = usu.agregarUsuario(TxtRut.Text, TxtNombre.Text, TxtApellido.Text, TxtCorreo.Text, TxtTelefono.Text, TxtDireccion.Text, TxtContrasena.Text, int.Parse(DdlComunas.SelectedValue), 2); if (LblMensaje.Text == "Usuario creado exitosamente!" || LblMensaje.Text == "Usuario o correo ya registrado") { TxtRut.Text = ""; TxtNombre.Text = ""; TxtApellido.Text = ""; TxtCorreo.Text = ""; TxtDireccion.Text = ""; TxtTelefono.Text = ""; TxtContrasena.Text = ""; TxtConfirma.Text = ""; LblCondiciones.Text = ""; DdlComunas.SelectedValue = "888"; ChbCondiciones.Checked = false; } ; } else { LblCondiciones.Text = "Se requiere aceptar condiciones de uso"; } }