Esempio n. 1
0
        protected void btnGuardar_Click(object sender, EventArgs e)
        {
            string tipopersona = "";

            if (this.RadioButton1.Checked)
            {
                tipopersona = "J";
            }
            else
            {
                tipopersona = "N";
            }
            Transaccion.InsertaCliente(this.txtRut.Text.Replace(".", ""), this.txtRazonSocial.Text, this.txtDireccion.Text, this.txtTelefono.Text, this.txtFax.Text, this.txtMail.Text, this.txtRutRepLegal.Text, this.txtRepLegal.Text, this.comuna.SelectedValue, this.region.SelectedValue, this.txtNumero.Text, this.txtNombres.Text, this.txtAPaterno.Text, this.txtAMaterno.Text, tipopersona);
            this.Page.RegisterClientScriptBlock("Mensaje", "<script>alert('Datos guardados correctamente');</script>");
            this.Cancela();
        }