protected void rpMaterial_ItemCommand(object source, System.Web.UI.WebControls.RepeaterCommandEventArgs e) { if (e.CommandName == "del") { int activityid = System.Convert.ToInt32(e.CommandArgument); if (VShopHelper.DeleteLotteryActivity(activityid, ((LotteryActivityType)this.type).ToString())) { this.ShowMsg("删除成功", true); this.BindMaterial(); return; } this.ShowMsg("删除失败", false); } }
protected void rpMaterial_ItemCommand(object source, RepeaterCommandEventArgs e) { if (e.CommandName == "del") { if (VShopHelper.DeleteLotteryActivity(Convert.ToInt32(e.CommandArgument), ((LotteryActivityType)this.type).ToString())) { this.ShowMsg("删除成功", true); this.BindMaterial(); } else { this.ShowMsg("删除失败", false); } } }