private void CreateTemplateByDirectory(string directorypath) { if (base.CheckCookie()) { ForumPageTemplate.BuildTemplate(directorypath); } }
private void CreateTemplate_Click(object sender, EventArgs e) { if (base.CheckCookie()) { ForumPageTemplate.BuildTemplate(this.Templatepath.SelectedValue); base.RegisterStartupScript("PAGE", "window.location.href='shortcut.aspx';"); } }
protected void Page_Load(object sender, EventArgs e) { if (Request["type"] == "single") { this.CreateSingleTemplate(Request["filename"], Request["path"]); return; } if (Request["type"] == "template") { ForumPageTemplate.BuildTemplate(Request["templatepath"]); } }