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); }
static NewProduct() { dsInventory = new InventoryDataSet(); InventoryLookUpTableAdapter daInventory = new InventoryLookUpTableAdapter(); }