protected void rptPromotions_ItemCommand(object source, RepeaterCommandEventArgs e) { try { string promotion_id = (string)e.CommandArgument; switch (e.CommandName) { case "EDIT": RedirectTo("~/Backend/Promotion/PromotionEdit.aspx" + "?promotion_id=" + promotion_id); break; case "DEL": PromotionController.DelPromotion(promotion_id, true); break; default: break; } bindPromotionList(); } catch (Exception exc) { } }