コード例 #1
0
 protected void BindData()
 {
     try
     {
         dsNopCommerceNews.Url = string.Format("http://www.nopCommerce.com/NewsRSS.aspx?Version={0}&Localhost={1}&HideAdvertisements={2}&StoreURL={3}", SiteHelper.GetCurrentVersion(), HttpContext.Current.Request.Url.IsLoopback, SettingManager.GetSettingValueBoolean("Common.HideAdvertisementsOnAdminArea"), SettingManager.StoreURL);
         lvNopCommerceNews.DataBind();
     }
     catch
     {
         //ShowError("No internet connection. nopCommerce news could not be loaded", exc.Message);
         this.Visible = false;
     }
 }
コード例 #2
0
ファイル: main.master.cs プロジェクト: terry2012/DSV
        protected void BindData()
        {
            string headerText = string.Format("nopCommerce {0}", SiteHelper.GetCurrentVersion());

            lblHeader.Text = headerText;
        }
コード例 #3
0
 public string serverVersion()
 {
     return(SiteHelper.GetCurrentVersion());
 }