예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!User.Identity.IsAuthenticated)  //if not logged in
            {
                Response.Redirect("/");
            }

            if (this.IsPostBack)
            {
                return;
            }
            InventoryLookUpTableAdapter daInventory = new InventoryLookUpTableAdapter();
            ProductTableAdapter         daProduct   = new ProductTableAdapter();

            daInventory.Fill(dsInventory.InventoryLookUp);
            daProduct.Fill(dsInventory.Product);
        }
예제 #2
0
 static NewProduct()
 {
     dsInventory = new InventoryDataSet();
     InventoryLookUpTableAdapter daInventory = new InventoryLookUpTableAdapter();
 }