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);
 }
示例#2
0
 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);
 }
示例#3
0
 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);
 }