protected void btnActualizar_Click(object sender, EventArgs e) { string tipopersona = ""; if (this.RadioButton1.Checked) { tipopersona = "J"; } else { tipopersona = "N"; } Transaccion.ActualizarCliente(this.CodCliente.Value, this.txtRazonSocial.Text, this.txtDireccion.Text, this.txtTelefono.Text, this.txtFax.Text, this.txtMail.Text, this.txtRutRepLegal.Text, this.txtRepLegal.Text, this.txtNumero.Text, this.region.SelectedValue, this.comuna.SelectedValue, this.txtNombres.Text, this.txtAPaterno.Text, this.txtAMaterno.Text, tipopersona); this.Page.RegisterClientScriptBlock("Mensaje", "<script>alert('Datos actualizados correctamente');</script>"); this.Cancela(); }