Exemplo n.º 1
0
        public void Execute(IJobExecutionContext context)
        {
            if (Trial.IsTrialEnabled)
            {
                return;
            }

            string strFileName             = "sitemap.html".ToLower();
            string strPhysicalTargetFolder = SettingsGeneral.AbsolutePath;
            string strPhysicalFilePath     = strPhysicalTargetFolder + strFileName;
            var    temp = new ExportHtmlMap(strPhysicalFilePath, SettingsMain.SiteUrl + "/", Encoding.UTF8);

            temp.Create();
        }
Exemplo n.º 2
0
 protected void createMap_Click(object sender, EventArgs e)
 {
     try
     {
         var exportHtmlMap = new ExportHtmlMap(_strPhysicalFilePath, SettingsMain.SiteUrl + "/", Encoding.UTF8);
         exportHtmlMap.Create();
         // Update label info
         RefreshFileInfo();
         //--------------------------------------------------------------------------------
     }
     catch (Exception ex)
     {
         MsgErr(ex.Message + " at SiteMapGenerate");
         AdvantShop.Diagnostics.Debug.LogError(ex);
     }
 }