void ProgramPlanAddToCart1_ControlCancelled(object sender) { this.Clear(); ProgramPlanAddToCart1.Clear(); pnlAlaCarte.Visible = false; pnlProgramPlan.Visible = false; pnlGiftCard.Visible = false; btnAddNewItem.Visible = true; pnlAddCartItem.Visible = false; }
void ProgramPlanAddToCart1_ControlSaved(object sender, ControlSavedEventArgs e) { ProgramPlanAddToCart1.Clear(); pnlAlaCarte.Visible = false; pnlProgramPlan.Visible = false; pnlGiftCard.Visible = false; btnAddNewItem.Visible = true; pnlAddCartItem.Visible = false; this.Clear(); this.Bind(); lblFeedback.Text = "Program Plan added to cart: " + DateTime.Now; }
void rblItemType_SelectedIndexChanged(object sender, EventArgs e) { MenuItemAddToCart1.Clear(); ProgramPlanAddToCart1.Clear(); GiftCertEdit1.Clear(); if (this.PrimaryKeyIndex > 0 && CurrentCart == null) { hccUserProfile profile = hccUserProfile.GetById(this.PrimaryKeyIndex); CurrentCart = hccCart.GetCurrentCart(profile.ASPUser); } if (CurrentCart != null) { switch (rblItemType.SelectedValue) { case "1": pnlAlaCarte.Visible = true; pnlProgramPlan.Visible = false; pnlGiftCard.Visible = false; MenuItemAddToCart1.PrimaryKeyIndex = CurrentCart.CartID; MenuItemAddToCart1.Bind(); break; case "2": pnlAlaCarte.Visible = false; pnlProgramPlan.Visible = true; pnlGiftCard.Visible = false; ProgramPlanAddToCart1.PrimaryKeyIndex = CurrentCart.CartID; ProgramPlanAddToCart1.Bind(); break; case "3": pnlAlaCarte.Visible = false; pnlProgramPlan.Visible = false; pnlGiftCard.Visible = true; GiftCertEdit1.PrimaryKeyIndex = CurrentCart.CartID; GiftCertEdit1.Bind(); break; default: break; } } }