⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 includefilepreview.aspx.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
字号:
namespace PowerEasy.WebSite.Admin.Template
{
    using PowerEasy.Components;
    using PowerEasy.Controls;
    using PowerEasy.Enumerations;
    using PowerEasy.Model.Templates;
    using PowerEasy.Templates;
    using PowerEasy.Web.UI;
    using System;
    using System.Web.UI.WebControls;

    public class IncludeFilePreview : AdminPage
    {
        protected Literal LitName;
        protected Literal LitPreview;
        protected ExtendedSiteMapPath SmpNavigator;

        protected void Page_Load(object sender, EventArgs e)
        {
            IncludeFileInfo includeFileInfoById = IncludeFile.GetIncludeFileInfoById(BasePage.RequestInt32("id"));
            if (!includeFileInfoById.IsNull)
            {
                this.LitName.Text = includeFileInfoById.Name;
                switch (includeFileInfoById.IncludeType)
                {
                    case IncludeType.None:
                        return;

                    case IncludeType.JSWriteHtml:
                    case IncludeType.JS:
                        this.LitPreview.Text = "<script type=\"text/javascript\" src=\"" + base.BasePath + SiteConfig.SiteOption.IncludeFilePath + "/" + includeFileInfoById.FileName + "\"></script>";
                        return;

                    case IncludeType.Html:
                        this.LitPreview.Text = "<iframe frameborder=\"0\" width=\"100%\" height=\"400px\" src=\"" + base.BasePath + SiteConfig.SiteOption.IncludeFilePath + "/" + includeFileInfoById.FileName + "\" scrolling=\"auto\" id=\"includeFile\"></iframe>";
                        return;
                }
            }
            else
            {
                AdminPage.WriteErrMsg("您修改的内嵌代码不存在!", "IncludeFileManage.aspx");
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -