protected void lstHAPOrders_ItemCommand(object sender, ListViewCommandEventArgs e)
        {
            switch (e.CommandName)
            {
            case "ViewOrder":
                //Redirect to MyOrders (MyAccount)
                Response.Redirect(getMyOrderDetailsLink(e.CommandArgument.ToString()));
                break;

            case "EditOrder":
                if (hasAPSPayment(e.CommandArgument.ToString()))
                {
                    HAPModal.Visible     = true;
                    HAPModal.ModalOption = Ordering.Controls.HAP.ModalType.EditHapAPS;
                    HAPModal.HAPOrderID  = e.CommandArgument.ToString();
                    HAPModal.SelectModal();
                }
                else
                {
                    //redirect to COP1 passing via querystring the #hap order
                    Response.Redirect(string.Format("~/Ordering/ShoppingCart.aspx?HAP=True&hapId={0}", e.CommandArgument));
                }
                break;

            case "CancelOrder":
                //Display Modal pupup for cancel a Hap Order and send the HAP Order ID to cancel
                HAPModal.Visible     = true;
                HAPModal.ModalOption = Ordering.Controls.HAP.ModalType.Cancel;
                HAPModal.HAPOrderID  = e.CommandArgument.ToString();
                HAPModal.SelectModal();
                break;
            }
        }
 protected void LinkRenewHAPOrder_Click(object sender, EventArgs e)
 {
     HAPModal.Visible     = true;
     HAPModal.ModalOption = Ordering.Controls.HAP.ModalType.Renew;
     HAPModal.SelectModal();
 }