protected override void ActionAdminPage() { int id = Convert.ToInt32(Page.RouteData.Values["id"]); BannerManager BM = new BannerManager(); banner = BM.GetByID(id); }
protected override void ActionAdminDo() { int ID = Convert.ToInt32(Request["ID"]); BannerManager BM = new BannerManager(); BannerTBx banner = BM.GetByID(ID); if (banner.ID == 0) { Response.Write("banner not exist!"); return; } banner.Status = -1; BM.Save(); Response.Write(1); }
protected override void ActionAdminDo() { int ID = Convert.ToInt32(Request["id"]); string name = Request["name"]; string title = Request["title"]; BannerManager BM = new BannerManager(); BannerTBx banner = BM.GetByID(ID); if (banner.ID == 0) { Response.Write("banner not exist!"); return; } banner.Name = name; banner.TitleBN = title; BM.Save(); Response.Write(1); }