protected void Page_Load(object sender, EventArgs e) { TreeNode tmpNd; tmpNd = new TreeNode(); tmpNd.Value = "0"; tmpNd.Text = "网站专题"; tmpNd.NavigateUrl = ""; tmpNd.Target = ""; tvNav.Nodes.Add(tmpNd); B_SpecCate bll = new B_SpecCate(); bll.TreeNode(tmpNd.ChildNodes); tvNav.ExpandAll(); }
protected void Page_Load(object sender, EventArgs e) { B_Admin badmin = new B_Admin(); badmin.CheckMulitLogin(); if (!badmin.ChkPermissions("ContentEdit")) { function.WriteErrMsg("没有权限进行此项操作"); } TreeNode tmpNd; tmpNd = new TreeNode(); tmpNd.Value = "0"; tmpNd.Text = "网站专题"; tmpNd.NavigateUrl = ""; tmpNd.Target = ""; tvNav.Nodes.Add(tmpNd); B_SpecCate bll = new B_SpecCate(); bll.InitTreeNode(tmpNd.ChildNodes); tvNav.ExpandAll(); }
protected void Page_Load(object sender, EventArgs e) { if (!string.IsNullOrEmpty(base.Request.QueryString["SCateID"])) { int ItemID = DataConverter.CLng(base.Request.QueryString["SCateID"]); B_SpecCate bll = new B_SpecCate(); M_SpecCate info = bll.GetCate(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"); } }