Esempio n. 1
0
        private void RegisterJavascriptVariables()
        {
            string javascript          = "var totalSalesLocalized = '{0}';var baseCurrencyCode = '{1}';";
            string totalSalesLocalized = Titles.TotalSales;
            string baseCurrencyCode    = CurrentSession.GetBaseCurrency();

            javascript = string.Format(CultureInfo.InvariantCulture, javascript, totalSalesLocalized, baseCurrencyCode);
            PageUtility.RegisterJavascript("SalesByGeographyWidget_Localized", javascript, this.Page, true);
        }