Beispiel #1
0
        /// <summary>
        /// 生成自定义页面文件
        /// </summary>
        /// <param name="FileName">生成路径</param>
        /// <param name="SkinContent">内容</param>
        private void CreatAdminSkin(string FileName, string SkinContent)
        {
            FileName = ThemeUrl.GetFullPath(FileName);
            string PhysicsPath = HttpContext.Current.Server.MapPath(@"~/" + ThemeUrl.GetPath(FileName));

            if (!Directory.Exists(PhysicsPath))
            {
                Directory.CreateDirectory(PhysicsPath);
            }
            string PhysicsFileName = HttpContext.Current.Server.MapPath(FileName);

            if (System.IO.File.Exists(PhysicsFileName))
            {
                System.IO.File.Delete(PhysicsFileName);
            }
            HtmlEngine.Instance.WriteFile(PhysicsFileName, SkinContent);
        }