void UpdateGrid() { Product a = new Product(); GridView1.DataSource = a.GetProduct2(); GridView1.DataBind(); Order b = new Order(); GridView2.DataSource = b.GetOrders(); GridView2.DataBind(); }
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(); }