Exemple #1
0
        protected void dgvPromotions_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            try
            {
                PromotionBL promotionBL = new PromotionBL();
                int         status      = promotionBL.DeletePromotion(int.Parse(dgvPromotions.DataKeys[e.RowIndex].Values[0].ToString()));

                Response.Redirect("~/" + ConfigurationManager.AppSettings["webshopAdminUrl"] + "/promotions.aspx");
            }
            catch (BLException ex)
            {
                setStatus(ex.Message, System.Drawing.Color.Red, true);
            }
        }
Exemple #2
0
        protected void dgvPromotions_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            try
            {
                PromotionBL promotionBL = new PromotionBL();
                int         status      = promotionBL.DeletePromotion(int.Parse(dgvPromotions.DataKeys[e.RowIndex].Values[0].ToString()));

                Response.Redirect("/administrator/promotions.aspx");
            }
            catch (BLException ex)
            {
                setStatus(ex.Message, System.Drawing.Color.Red, true);
            }
        }