protected void Page_Load(object sender, EventArgs e) { Call.HideBread(Master); B_Admin badmin = new B_Admin(); B_ARoleAuth.Check(ZLEnum.Auth.content, "ContentEdit"); B_Spec bll = new B_Spec(); DataTable dt = nodeBll.SelForShowAll(0, true); BindNode(dt); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { B_Admin badmin = new B_Admin(); B_ARoleAuth.Check(ZLEnum.Auth.content, "ContentEdit"); B_Spec bll = new B_Spec(); DataTable dt = bll.GetSpecAll(); BindNode(dt); Call.HideBread(Master); } }
//专题id|名称, private string SetSpecial(string specialid) { string sps = ""; B_Spec Bs = new B_Spec(); if (!string.IsNullOrEmpty(specialid)) { string[] arr = specialid.Split(new char[] { ',' }); for (int i = 0; i < arr.Length; i++) { if (!string.IsNullOrEmpty(arr[i])) { M_Spec dd = Bs.GetSpec(DataConverter.CLng(arr[i])); sps += arr[i] + "|" + dd.SpecName + ","; } } } return(sps); }
protected void Page_Load(object sender, EventArgs e) { if (!string.IsNullOrEmpty(base.Request.QueryString["SpecID"])) { int ItemID = DataConverter.CLng(base.Request.QueryString["SpecID"]); B_Spec bll = new B_Spec(); M_Spec info = bll.GetSpec(ItemID); string TemplateDir = ""; TemplateDir = info.ListTemplate; if (string.IsNullOrEmpty(TemplateDir)) { Response.Write("该专题列表页未指定模板"); } else { TemplateDir = SiteConfig.SiteOption.TemplateDir + TemplateDir; int Cpage = 1; if (string.IsNullOrEmpty(base.Request.QueryString["page"])) { Cpage = 1; } else { Cpage = DataConverter.CLng(base.Request.QueryString["page"]); } TemplateDir = base.Request.PhysicalApplicationPath + TemplateDir; TemplateDir = TemplateDir.Replace("/", @"\"); string ContentHtml = this.bll.CreateHtml(FileSystemObject.ReadFile(TemplateDir), Cpage, ItemID); Response.Write(ContentHtml); } } else { Response.Write("没有指定专题ID"); } }