protected void Page_Load(object sender, System.EventArgs e) { if (storeInfo == null) { StoreController storeController = new StoreController(); storeInfo = storeController.GetStoreInfo(PortalId); if (storeInfo.CurrencySymbol != string.Empty) { LocalFormat.CurrencySymbol = storeInfo.CurrencySymbol; } } moduleSettings = new ModuleSettings(parentControl.ModuleId, parentControl.TabId); cartNav = new CartNavigation(Request.QueryString); //try //{ updateCartGrid(); //} //catch(Exception ex) //{ // Exceptions.ProcessModuleLoadException(this, ex); //} }
protected void Page_Load(object sender, System.EventArgs e) { try { if (storeInfo == null) { StoreController storeController = new StoreController(); storeInfo = storeController.GetStoreInfo(PortalId); if (storeInfo.CurrencySymbol != string.Empty) { LocalFormat.CurrencySymbol = storeInfo.CurrencySymbol; } if (storeInfo.PortalTemplates) { CssTools.AddCss(this.Page, PortalSettings.HomeDirectory + "Store", PortalId); } else { CssTools.AddCss(this.Page, this.TemplateSourceDirectory, PortalId); } } moduleSettings = new ModuleSettings(ModuleId, TabId); cartNav = new CartNavigation(Request.QueryString); } catch (Exception ex) { string ErrorSettings = Localization.GetString("ErrorSettings", this.LocalResourceFile); Exceptions.ProcessModuleLoadException(ErrorSettings, this, ex, true); } try { updateCartGrid(); } catch(Exception ex) { Exceptions.ProcessModuleLoadException(this, ex); } }