private void llenatablaresumido() { string test2 = selectBodega.Value; string[] palabras2 = test2.Split('/'); string idcosto = palabras2[0]; labelFechainicio.InnerText = txtdesde.Value; labelfechafin.InnerText = txthasta.Value; try { var res = Controlasql.Cventasresumidolinea(txtdesde.Value, txthasta.Value, idcosto); if (res.Tables[0].Rows.Count > 0) { Gridviewresumido.DataSource = res; Gridviewresumido.DataBind(); } } catch (Exception ex) { notificacion.Visible = true; txtnotifica.InnerText = ex.Message; } }
protected void Ventaslinea_Click(object sender, EventArgs e) { try { var res = Controlasql.Cventasresumidolinea(txtdesde.Value, txthasta.Value, Session["CCOSTO"].ToString()); if (res.Tables[0].Rows.Count > 0) { Gridviewresumido.DataSource = res; Gridviewresumido.DataBind(); } } catch (Exception ex) { } }