Exemple #1
0
    void actualizarGV_Venta()
    {
        List <Producto> listaV = new List <Producto>();

        listaV = (Session["lis"] as List <Producto>);
        GV_Venta.DataSource = listaV;
        GV_Venta.DataBind();
        AgregarProductos p = new AgregarProductos();

        ((TextBox)GV_Venta.FooterRow.FindControl("TB_TotalVenta")).Text = p.valorVenta(Session["valorVenta"].ToString());
    }
Exemple #2
0
    void actualizarGV_Venta()
    {
        List <Producto> listaV = new List <Producto>();

        listaV = (Session["lis"] as List <Producto>);
        GV_Venta.DataSource = listaV;
        GV_Venta.DataBind();
        AgregarProductos p = new AgregarProductos();

        try
        {
            ((TextBox)GV_Venta.FooterRow.FindControl("TB_TotalVenta")).Text = p.valorVenta(Session["valorVenta"].ToString());
        }
        catch (Exception e)
        {
#pragma warning disable CS0618 // Type or member is obsolete
            RegisterStartupScript("mensaje", "<script type='text/javascript'>alert('No hay productos para añadir a la grid venta');</script>");
#pragma warning restore CS0618 // Type or member is obsolete
        }
    }