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

📄 getuploadpath.aspx.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
字号:
namespace PowerEasy.WebSite.User.Accessories
{
    using PowerEasy.Components;
    using PowerEasy.Contents;
    using PowerEasy.Model.Contents;
    using PowerEasy.Web.UI;
    using System;
    using System.Web.UI.HtmlControls;

    public class GetUploadPath : BasePage
    {
        protected HtmlForm form1;

        protected void Page_Load(object sender, EventArgs e)
        {
            int nodeId = BasePage.RequestInt32("NodeId");
            this.Session["PowerEasy:NodeId"] = nodeId;
            if (nodeId != 0)
            {
                string uploadFilePathRule = "";
                NodeInfo cacheNodeById = Nodes.GetCacheNodeById(nodeId);
                if (SiteConfig.SiteOption.EnableUploadFiles)
                {
                    uploadFilePathRule = "/" + SiteConfig.SiteOption.UploadFilePathRule;
                    uploadFilePathRule = Nodes.ResolveUploadDir(cacheNodeById, uploadFilePathRule);
                    this.Session["PowerEasy:UserFilesPath"] = uploadFilePathRule;
                }
            }
        }
    }
}

⌨️ 快捷键说明

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