Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string FilePath;

            if (SiteDir == "")
            {
                FilePath = "~/" + GetVirtualPath + "config/SiteParam.config";
            }
            else
            {
                FilePath = "~/" + GetVirtualPath + SiteDir + "/config/SiteParam.config";
            }

            PhyFilePath = HttpContext.Current.Server.MapPath(FilePath);
            KingTop.BLL.SysManage.SysWebSite siteBll = new SysWebSite();
            DataTable dt = siteBll.GetList("One", Utils.getOneParams(SiteID.ToString()));

            if (dt.Rows.Count > 0)
            {
                if (dt.Rows[0]["IsMainSite"].ToString() == "True")
                {
                    isMainDomain = true;
                }
            }
            if (!Page.IsPostBack)
            {
                ResetConfig();
                BindDate();
            }
        }
Exemplo n.º 2
0
        //获取当前站点的文件夹名称
        protected string GetSiteDir()
        {
            string     strSiteDir = "";
            SysWebSite bllWebSite = new SysWebSite();
            DataTable  dt         = bllWebSite.GetList("ONE", Utils.getOneParams(SiteID.ToString()));

            strSiteDir = dt.Rows[0]["Directory"].ToString();
            return(strSiteDir);
        }