예제 #1
0
        void UpdateGrid()
        {
            Product a = new Product();
            GridView1.DataSource = a.GetProduct2();
            GridView1.DataBind();

            Order b = new Order();
            GridView2.DataSource = b.GetOrders();
            GridView2.DataBind();
        }
예제 #2
0
        void UpdateGrid()
        {
            Product a = new Product();
            GridView1.DataSource = a.GetProduct2();
            GridView1.DataBind();

            Order b = new Order();
            b.Username = Session["Name"].ToString();
            GridView2.DataSource = b.GetOrders2();
            GridView2.DataBind();
        }