Exemplo n.º 1
0
    protected void GrabarPersona()
    {
        SqlCommand comando = new SqlCommand();
        Funciones  Objeto  = new Funciones();;

        comando = Objeto.ArmarParametrosPersonas(comando, txtNombre.Text, txtApellido.Text, ddlTipoDocumento.Text, txtNumeroDocumento.Text, txtMail.Text);
        Objeto.EjecutarSp("SPagregarPersonas", comando);
    }
Exemplo n.º 2
0
 protected void GrabarPersona()
 {
     try
     {
         SqlCommand comando = new SqlCommand();
         Funciones  Objeto  = new Funciones();;
         comando = Objeto.ArmarParametrosPersonas(comando, txtNombre.Text, txtApellido.Text, ddlTipoDocumento.Text, txtNumeroDocumento.Text, txtMail.Text, txtTelefono.Text, txtDireccion.Text, txtLocalidad.Text, txtCiudad.Text);
         Objeto.EjecutarSp("SPagregarPersonas", comando);
     }
     catch
     {
         lblCartel.Text    = "No se logro agregar la persona";
         lblCartel.Visible = true;
     }
 }