protected void btnSave_Click(object sender, EventArgs e) { using (CreateOrder CO = new CreateOrder()) { CO.UpdateCart(OrderID, MenuID, Convert.ToInt32(txtQty.Text)); CO.updateORDERTABLE(OrderID); } Response.Redirect("CreateOrder.aspx?id=" + OrderID); }
protected void Page_Load(object sender, EventArgs e) { OrderID = Request.QueryString["Id"]; MenuID = Request.QueryString["mn"]; using (CreateOrder CO = new CreateOrder()) { CO.DeleteItem(OrderID, MenuID); CO.updateORDERTABLE(OrderID); } Response.Redirect("CreateOrder.aspx?id=" + OrderID); }
protected void btnAddtoCart_Click(object sender, EventArgs e) { using (CreateOrder CO = new CreateOrder()) { CO.AddtoCart(OrderID, MenuID, Convert.ToInt32(txtQty.Text)); CO.updateORDERTABLE(OrderID); } txtQty.Enabled = false; btnAddtoCart.Enabled = false; ScriptManager.RegisterStartupScript(this, this.GetType(), "Pop2", "playPopUp();", true); Response.Redirect("CreateOrder.aspx?id=" + OrderID); }