示例#1
0
 public void Listarventasla14(object sender, EventArgs e)
 {
     try
     {
         var registrosla14 = Controlasql.Clista_la14VENTAS(txtfechaini.Value.ToUpper(), txtfechafin.Value);
         if (registrosla14.Tables[0].Rows.Count > 0)
         {
             Gridla14.DataSource = registrosla14;
             Gridla14.DataBind();
         }
         else
         {
             Gridla14.DataSource = null;
             Gridla14.DataBind();
         }
     }
     catch (Exception)
     {
         Response.Redirect("Exceptionnet.aspx");
     }
 }