Ejemplo n.º 1
0
 protected void consulta(object sender, EventArgs e)
 {
     try
     {
         var registros14 = Controlasql.Clista_la14aux(txtfechaini.Value.ToUpper(), txtfechafin.Value, txtcuenta.Value);
         if (registros14.Tables[0].Rows.Count > 0)
         {
             GridViewLa14auxcontable.DataSource = registros14;
             GridViewLa14auxcontable.DataBind();
         }
         else
         {
             GridViewLa14auxcontable.DataSource = null;
             GridViewLa14auxcontable.DataBind();
         }
     }
     catch (Exception)
     {
         throw;
     }
 }