protected void Page_Load(object sender, EventArgs e) { cart1 = (String[])Session["ALL"]; id = int.Parse(cart1[5]); //Bind datagrid try { dt = books.ConsultarMiPago(id); //Devuelve solo ventas que no se haya solicitado fondos dtgVentas.DataSource = dt; dtgVentas.DataBind(); getTotal(); } catch (Exception ex) { lblTotal.Text = ex.Message; } }