Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            SettingsDesign.eMainPageMode currentMode = !Demo.IsDemoEnabled ||
                                                       !CommonHelper.GetCookieString("structure").IsNotEmpty()
                                                           ? SettingsDesign.MainPageMode
                                                           : (SettingsDesign.eMainPageMode)Enum.Parse(typeof(SettingsDesign.eMainPageMode), CommonHelper.GetCookieString("structure"));
            LoadModules();


            mvDefaultPage.SetActiveView(defaultView);
            news.Visible            = SettingsDesign.NewsVisibility;
            mainPageProduct.Visible = SettingsDesign.MainPageProductsVisibility;
            voting.Visible          = SettingsDesign.VotingVisibility;
            checkOrder.Visible      = SettingsDesign.CheckOrderVisibility;
            giftCertificate.Visible = SettingsDesign.GiftSertificateVisibility &&
                                      SettingsOrderConfirmation.EnableGiftCertificateService;
            carousel.Visible = SettingsDesign.CarouselVisibility;

            if (MainPageProductsAfterCarousel.IsNotEmpty())
            {
                carousel.CssSlider += " flexslider-inline";
            }

            SetMeta(null, string.Empty);

            if (GoogleTagManager.Enabled)
            {
                var tagManager = ((AdvantShopMasterPage)Master).TagManager;
                tagManager.PageType = GoogleTagManager.ePageType.home;
            }
        }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            form.Action = Request.RawUrl;

            lsocialCss.Text = string.Format("<link type=\"text/css\" rel=\"stylesheet\" href=\"templates/social/css/{0}.css\" />", UrlService.IsSocialUrl(Request.Url.ToString()).ToString());

            searchBlock.Visible = (SettingsDesign.SearchBlockLocation == SettingsDesign.eSearchBlockLocation.TopMenu && SettingsDesign.MainPageMode == SettingsDesign.eMainPageMode.Default);

            SettingsDesign.eMainPageMode currentMode = !Demo.IsDemoEnabled ||
                                                       !CommonHelper.GetCookieString("structure").IsNotEmpty()
                                                           ? SettingsDesign.MainPageMode
                                                           : (SettingsDesign.eMainPageMode)
                                                       Enum.Parse(typeof(SettingsDesign.eMainPageMode),
                                                                  CommonHelper.GetCookieString("structure"));

            if (currentMode == SettingsDesign.eMainPageMode.Default)
            {
                menuTop.Visible         = true;
                searchBig.Visible       = false;
                menuCatalog.Visible     = true;
                menuTopMainPage.Visible = false;

                liViewCss.Text = "<link rel=\"stylesheet\" href=\"css/views/default.css\" >";
            }
            else if (currentMode == SettingsDesign.eMainPageMode.TwoColumns)
            {
                menuTop.Visible         = false;
                searchBig.Visible       = (SettingsDesign.SearchBlockLocation == SettingsDesign.eSearchBlockLocation.TopMenu);
                menuCatalog.Visible     = false;
                searchBlock.Visible     = false;
                menuTopMainPage.Visible = true;

                liViewCss.Text = "<link rel=\"stylesheet\" href=\"css/views/twocolumns.css\" >";
            }
            else if (currentMode == SettingsDesign.eMainPageMode.ThreeColumns)
            {
                menuTop.Visible         = false;
                searchBig.Visible       = (SettingsDesign.SearchBlockLocation == SettingsDesign.eSearchBlockLocation.TopMenu);
                menuCatalog.Visible     = false;
                menuTopMainPage.Visible = true;

                liViewCss.Text = "<link rel=\"stylesheet\" href=\"css/views/threecolumns.css\" >";
            }
        }
Esempio n. 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        SettingsDesign.eMainPageMode currentMode = !Demo.IsDemoEnabled || !CommonHelper.GetCookieString("structure").IsNotEmpty()
                      ? SettingsDesign.MainPageMode
                      : (SettingsDesign.eMainPageMode)Enum.Parse(typeof(SettingsDesign.eMainPageMode), CommonHelper.GetCookieString("structure"));

        switch (currentMode)
        {
        case SettingsDesign.eMainPageMode.Default:
            mvDefaultPage.SetActiveView(defaultView);
            news.Visible            = SettingsDesign.NewsVisibility;
            mainPageProduct.Visible = SettingsDesign.MainPageProductsVisibility;
            //Voting remareked by Evgeni
            //  voting.Visible = SettingsDesign.VotingVisibility;
            checkOrder.Visible      = SettingsDesign.CheckOrderVisibility;
            giftCertificate.Visible = SettingsDesign.GiftSertificateVisibility && SettingsOrderConfirmation.EnableGiftCertificateService;
            BoschCarousel1.Visible  = SettingsDesign.CarouselVisibility;
            break;

        case SettingsDesign.eMainPageMode.TwoColumns:
            mvDefaultPage.SetActiveView(twoColumnsView);
            newsTwoColumns.Visible            = SettingsDesign.NewsVisibility;
            votingTwoColumns.Visible          = SettingsDesign.VotingVisibility;
            checkOrderTwoColumns.Visible      = SettingsDesign.CheckOrderVisibility;
            giftCertificateTwoColumns.Visible = SettingsDesign.GiftSertificateVisibility && SettingsOrderConfirmation.EnableGiftCertificateService;
            carouselTwoColumns.Visible        = SettingsDesign.CarouselVisibility;
            mainPageProductTwoColumns.Visible = SettingsDesign.MainPageProductsVisibility;
            break;

        case SettingsDesign.eMainPageMode.ThreeColumns:
            mvDefaultPage.SetActiveView(threeColumnsView);
            newsThreeColumns.Visible            = SettingsDesign.NewsVisibility;
            votingThreeColumns.Visible          = SettingsDesign.VotingVisibility;
            CheckOrderThreeColumns.Visible      = SettingsDesign.CheckOrderVisibility;
            giftCertificateThreeColumns.Visible = SettingsDesign.GiftSertificateVisibility && SettingsOrderConfirmation.EnableGiftCertificateService;
            carouselThreeColumns.Visible        = SettingsDesign.CarouselVisibility;
            mainPageProductThreeColumn.Visible  = SettingsDesign.MainPageProductsVisibility;
            break;
        }

        SetMeta(null, string.Empty);
    }
Esempio n. 4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        SettingsDesign.eMainPageMode currentMode = !Demo.IsDemoEnabled || !CommonHelper.GetCookieString("structure").IsNotEmpty()
                      ? SettingsDesign.MainPageMode
                      : (SettingsDesign.eMainPageMode)Enum.Parse(typeof(SettingsDesign.eMainPageMode), CommonHelper.GetCookieString("structure"));


        if (Mode != currentMode)
        {
            this.Visible = false;
            return;
        }

        const byte itemsPerLine     = 4;
        const byte itemsPerLineThin = 3;

        var countNew        = ProductOnMain.GetProductCountByType(ProductOnMain.TypeFlag.New);
        var countDiscount   = ProductOnMain.GetProductCountByType(ProductOnMain.TypeFlag.Discount);
        var countBestseller = ProductOnMain.GetProductCountByType(ProductOnMain.TypeFlag.Bestseller);

        switch (Mode)
        {
        case SettingsDesign.eMainPageMode.Default:

            mvMainPageProduct.SetActiveView(viewDefault);

            if (countBestseller == 0)
            {
                ItemsCount = 3;
            }
            if (countNew == 0)
            {
                ItemsCount = ItemsCount == 2 ? 3 : 6;
            }
            if (countDiscount == 0)
            {
                ItemsCount = ItemsCount == 2 ? 3 : 6;
            }

            if (countBestseller > 0)
            {
                liBestsellers.Attributes.Add("class", "block width-for-" + ItemsCount);
                lvBestSellers.DataSource = ProductOnMain.GetProductsByType(ProductOnMain.TypeFlag.Bestseller, ItemsCount * SettingsDesign.CountLineOnMainPage);
                lvBestSellers.DataBind();
            }
            else
            {
                liBestsellers.Visible = false;
            }
            if (countNew > 0)
            {
                liNew.Attributes.Add("class", "block width-for-" + ItemsCount);
                lvNew.DataSource = ProductOnMain.GetProductsByType(ProductOnMain.TypeFlag.New, ItemsCount * SettingsDesign.CountLineOnMainPage);
                lvNew.DataBind();
            }
            else
            {
                liNew.Visible = false;
            }

            if (countDiscount > 0)
            {
                liDiscount.Attributes.Add("class", "block block-last width-for-" + ItemsCount);
                lvDiscount.DataSource = ProductOnMain.GetProductsByType(ProductOnMain.TypeFlag.Discount, ItemsCount * SettingsDesign.CountLineOnMainPage);
                lvDiscount.DataBind();
            }
            else
            {
                liDiscount.Visible = false;
            }

            break;

        case SettingsDesign.eMainPageMode.TwoColumns:
            mvMainPageProduct.SetActiveView(viewAlternative);

            if (countBestseller > 0)
            {
                lvBestSellersAltervative.DataSource = ProductOnMain.GetProductsByType(ProductOnMain.TypeFlag.Bestseller, itemsPerLine * SettingsDesign.CountLineOnMainPage);
                lvBestSellersAltervative.DataBind();
            }
            else
            {
                pnlBest.Visible = false;
            }

            if (countNew > 0)
            {
                lvNewAlternative.DataSource = ProductOnMain.GetProductsByType(ProductOnMain.TypeFlag.New, itemsPerLine * SettingsDesign.CountLineOnMainPage);
                lvNewAlternative.DataBind();
            }
            else
            {
                pnlNew.Visible = false;
            }

            if (countDiscount > 0)
            {
                lvDiscountAlternative.DataSource = ProductOnMain.GetProductsByType(ProductOnMain.TypeFlag.Discount, itemsPerLine * SettingsDesign.CountLineOnMainPage);
                lvDiscountAlternative.DataBind();
            }
            else
            {
                pnlDiscount.Visible = false;
            }
            break;

        case SettingsDesign.eMainPageMode.ThreeColumns:
            mvMainPageProduct.SetActiveView(viewAlternative);

            if (countBestseller > 0)
            {
                lvBestSellersAltervative.DataSource = ProductOnMain.GetProductsByType(ProductOnMain.TypeFlag.Bestseller, itemsPerLineThin * SettingsDesign.CountLineOnMainPage);
                lvBestSellersAltervative.DataBind();
            }
            else
            {
                pnlBest.Visible = false;
            }

            if (countNew > 0)
            {
                lvNewAlternative.DataSource = ProductOnMain.GetProductsByType(ProductOnMain.TypeFlag.New, itemsPerLineThin * SettingsDesign.CountLineOnMainPage);
                lvNewAlternative.DataBind();
            }
            else
            {
                pnlNew.Visible = false;
            }

            if (countDiscount > 0)
            {
                lvDiscountAlternative.DataSource = ProductOnMain.GetProductsByType(ProductOnMain.TypeFlag.Discount, itemsPerLineThin * SettingsDesign.CountLineOnMainPage);
                lvDiscountAlternative.DataBind();
            }
            else
            {
                pnlDiscount.Visible = false;
            }
            break;

        default:
            throw new NotImplementedException();
        }
    }
Esempio n. 5
0
        private void AddNewContentInFooter()
        {
            SettingsDesign.eMainPageMode currentMode = !Demo.IsDemoEnabled || !CommonHelper.GetCookieString("structure").IsNotEmpty()
                                                           ? SettingsDesign.MainPageMode
                                                           : (SettingsDesign.eMainPageMode)Enum.Parse(typeof(SettingsDesign.eMainPageMode), CommonHelper.GetCookieString("structure"));


            if (SettingsDesign.Template == TemplateService.DefaultTemplateId && Mode != currentMode)
            {
                this.Visible = false;
                return;
            }

            LoadModules();

            var countNew        = ProductOnMain.GetProductCountByType(ProductOnMain.TypeFlag.New);
            var countDiscount   = ProductOnMain.GetProductCountByType(ProductOnMain.TypeFlag.Discount);
            var countBestseller = ProductOnMain.GetProductCountByType(ProductOnMain.TypeFlag.Bestseller);
            var countRecomended = ProductOnMain.GetProductCountByType(ProductOnMain.TypeFlag.Recomended);

            switch (Mode)
            {
            case SettingsDesign.eMainPageMode.Default:

                mvMainPageProduct.SetActiveView(viewDefault);

                int ItemsCount = 3;

                if (countBestseller == 0)
                {
                    ItemsCount = 3;
                }
                if (countNew == 0)
                {
                    ItemsCount = ItemsCount == 2 ? 3 : 6;
                }
                if (countDiscount == 0)
                {
                    ItemsCount = ItemsCount == 2 ? 3 : 6;
                }
                if (countRecomended == 0)
                {
                    ItemsCount = ItemsCount == 2 ? 3 : 6;
                }

                if (countBestseller > 0)
                {
                    liBestsellers.Attributes.Add("class", "block width-for-" + ItemsCount);     //SettingsDesign.CountLineOnMainPage);
                    //lvBestSellers.DataSource = ProductOnMain.GetProductsByType(ProductOnMain.TypeFlag.Bestseller, ItemCountInRow);
                    lvBestSellers.DataSource = ProductOnMain.GetProductsByType(ProductOnMain.TypeFlag.Bestseller, 12);
                    lvBestSellers.DataBind();
                }
                else
                {
                    liBestsellers.Visible = false;
                }
                if (countNew > 0)
                {
                    liNew.Attributes.Add("class", "block width-for-" + ItemsCount);     //SettingsDesign.CountLineOnMainPage);
                    //lvNew.DataSource = ProductOnMain.GetProductsByType(ProductOnMain.TypeFlag.New, ItemCountInRow);
                    lvNew.DataSource = ProductOnMain.GetProductsByType(ProductOnMain.TypeFlag.New, 12);
                    lvNew.DataBind();
                }
                else
                {
                    liNew.Visible = false;
                }

                if (countDiscount > 0)
                {
                    liDiscount.Attributes.Add("class", "block block-last width-for-" + ItemsCount);     //SettingsDesign.CountLineOnMainPage);
                    //lvDiscount.DataSource = ProductOnMain.GetProductsByType(ProductOnMain.TypeFlag.OnSale, ItemCountInRow);
                    lvDiscount.DataSource = ProductOnMain.GetProductsByType(ProductOnMain.TypeFlag.OnSale, 12);
                    lvDiscount.DataBind();
                }
                else
                {
                    liDiscount.Visible = false;
                }

                if (countRecomended > 0)
                {
                    liRecomended.Attributes.Add("class", "block width-for-" + ItemsCount);     //SettingsDesign.CountLineOnMainPage);
                    //lvRecomended.DataSource = ProductOnMain.GetProductsByType(ProductOnMain.TypeFlag.Recomended, ItemCountInRow);
                    lvRecomended.DataSource = ProductOnMain.GetProductsByType(ProductOnMain.TypeFlag.Recomended, 12);
                    lvRecomended.DataBind();
                }
                else
                {
                    liRecomended.Visible = false;
                }

                break;

            case SettingsDesign.eMainPageMode.TwoColumns:
                mvMainPageProduct.SetActiveView(viewDefault);

                if (countBestseller > 0)
                {
                    lvBestSellers.DataSource = ProductOnMain.GetProductsByType(ProductOnMain.TypeFlag.Bestseller, ItemCountInRow);
                    lvBestSellers.DataBind();
                }
                else
                {
                    pnlBest.Visible = false;
                }

                if (countNew > 0)
                {
                    lvNewAlternative.DataSource = ProductOnMain.GetProductsByType(ProductOnMain.TypeFlag.New, ItemCountInRow);
                    lvNewAlternative.DataBind();
                }
                else
                {
                    pnlNew.Visible = false;
                }

                if (countDiscount > 0)
                {
                    lvDiscountAlternative.DataSource = ProductOnMain.GetProductsByType(ProductOnMain.TypeFlag.Discount, ItemCountInRow);
                    lvDiscountAlternative.DataBind();
                }
                else
                {
                    pnlDiscount.Visible = false;
                }

                if (countRecomended > 0)
                {
                    lvRecomended.DataSource = ProductOnMain.GetProductsByType(ProductOnMain.TypeFlag.Recomended, ItemCountInRow);
                    lvRecomended.DataBind();
                }
                else
                {
                    pnlRecomended.Visible = false;
                }
                break;

            case SettingsDesign.eMainPageMode.ThreeColumns:
                mvMainPageProduct.SetActiveView(viewDefault);

                if (countBestseller > 0)
                {
                    lvBestSellers.DataSource = ProductOnMain.GetProductsByType(ProductOnMain.TypeFlag.Bestseller, ItemCountInRow);
                    lvBestSellers.DataBind();
                }
                else
                {
                    pnlBest.Visible = false;
                }

                if (countNew > 0)
                {
                    lvNewAlternative.DataSource = ProductOnMain.GetProductsByType(ProductOnMain.TypeFlag.New, ItemCountInRow);
                    lvNewAlternative.DataBind();
                }
                else
                {
                    pnlNew.Visible = false;
                }

                if (countDiscount > 0)
                {
                    lvDiscountAlternative.DataSource = ProductOnMain.GetProductsByType(ProductOnMain.TypeFlag.Discount, ItemCountInRow);
                    lvDiscountAlternative.DataBind();
                }
                else
                {
                    pnlDiscount.Visible = false;
                }

                if (countRecomended > 0)
                {
                    lvRecomended.DataSource = ProductOnMain.GetProductsByType(ProductOnMain.TypeFlag.Recomended, ItemCountInRow);
                    lvRecomended.DataBind();
                }
                else
                {
                    pnlRecomended.Visible = false;
                }
                break;

            default:
                throw new NotImplementedException();
            }
        }
Esempio n. 6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            SettingsDesign.eMainPageMode currentMode = !Demo.IsDemoEnabled ||
                                                       !CommonHelper.GetCookieString("structure").IsNotEmpty()
                                                           ? SettingsDesign.MainPageMode
                                                           : (SettingsDesign.eMainPageMode)Enum.Parse(typeof(SettingsDesign.eMainPageMode), CommonHelper.GetCookieString("structure"));
            LoadModules();

            switch (currentMode)
            {
            case SettingsDesign.eMainPageMode.Default:
                mvDefaultPage.SetActiveView(defaultView);
                news.Visible            = SettingsDesign.NewsVisibility;
                mainPageProduct.Visible = SettingsDesign.MainPageProductsVisibility;
                carousel.Visible        = SettingsDesign.CarouselVisibility;

                if (MainPageProductsAfterCarousel.IsNotEmpty())
                {
                    carousel.CssSlider += " flexslider-inline";
                }
                break;

            case SettingsDesign.eMainPageMode.TwoColumns:
                mvDefaultPage.SetActiveView(twoColumnsView);
                newsTwoColumns.Visible            = SettingsDesign.NewsVisibility;
                votingTwoColumns.Visible          = SettingsDesign.VotingVisibility;
                checkOrderTwoColumns.Visible      = SettingsDesign.CheckOrderVisibility;
                giftCertificateTwoColumns.Visible = SettingsDesign.GiftSertificateVisibility &&
                                                    SettingsOrderConfirmation.EnableGiftCertificateService;
                carouselTwoColumns.Visible        = SettingsDesign.CarouselVisibility;
                mainPageProductTwoColumns.Visible = SettingsDesign.MainPageProductsVisibility;

                if (MainPageProductsAfterCarousel.IsNotEmpty())
                {
                    carouselTwoColumns.CssSlider += " flexslider-inline-b";
                }
                break;

            case SettingsDesign.eMainPageMode.ThreeColumns:
                mvDefaultPage.SetActiveView(threeColumnsView);
                newsThreeColumns.Visible            = SettingsDesign.NewsVisibility;
                votingThreeColumns.Visible          = SettingsDesign.VotingVisibility;
                CheckOrderThreeColumns.Visible      = SettingsDesign.CheckOrderVisibility;
                giftCertificateThreeColumns.Visible = SettingsDesign.GiftSertificateVisibility &&
                                                      SettingsOrderConfirmation.EnableGiftCertificateService;
                carouselThreeColumns.Visible       = SettingsDesign.CarouselVisibility;
                mainPageProductThreeColumn.Visible = SettingsDesign.MainPageProductsVisibility;
                break;
            }

            SetMeta(null, string.Empty);

            if (GoogleTagManager.Enabled)
            {
                var tagManager = ((AdvantShopMasterPage)Master).TagManager;
                tagManager.PageType = GoogleTagManager.ePageType.home;
            }

            //filterPrice.CategoryId = _categoryId;
            filterPrice.CategoryId = AdvantShop.Catalog.CategoryService.GetCategoryIdByName("Каталог");
            // filterPrice.InDepth = Indepth;
            filterPrice.InDepth = true;
            // filterPrice.Visible = SettingsCatalog.ShowPriceFilter;
        }
Esempio n. 7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        form.Action = Request.RawUrl;

        if (SaasDataService.IsSaasEnabled && !SaasDataService.CurrentSaasData.IsWorkingNow)
        {
            Response.Redirect(UrlService.GetAbsoluteLink("/app_offline.html"));
        }

        Customer curentCustomer = CustomerSession.CurrentCustomer;

        //Added  by Evgeni
        //if (curentCustomer.EMail != string.Empty)
        //{
        //    lblEnteredAs.Text = Resources.Resource.Client_MasterPage_EnteredAs + curentCustomer.EMail;
        //}
        pnlLogin.Visible       = !curentCustomer.RegistredUser;
        pnlmyAccount.Visible   = curentCustomer.RegistredUser;
        pnlConstructor.Visible = curentCustomer.CustomerRole == Role.Administrator || Demo.IsDemoEnabled || Trial.IsTrialEnabled;

        pnlAdmin.Visible       = (curentCustomer.CustomerRole == Role.Administrator || curentCustomer.CustomerRole == Role.Moderator) && !Demo.IsDemoEnabled && !Trial.IsTrialEnabled;
        lbLoginAsAdmin.Visible = Trial.IsTrialEnabled;

        pnlCurrency.Visible  = SettingsDesign.CurrencyVisibility;
        pnlWishList.Visible  = SettingsDesign.WishListVisibility;
        shoppingCart.Visible = SettingsDesign.ShoppingCartVisibility;

        searchBlock.Visible  = (SettingsDesign.SearchBlockLocation == SettingsDesign.eSearchBlockLocation.TopMenu && SettingsDesign.MainPageMode == SettingsDesign.eMainPageMode.Default);
        demoFeedBack.Visible = true; //Changed by Evgeni Demo.IsDemoEnabled || Trial.IsTrialEnabled;

        //Changed by Evgeni to Change logo on the fly
        if (LogoImagePath == string.Empty)
        {
            Logo.ImgSource = FoldersHelper.GetPath(FolderType.Pictures, SettingsMain.LogoImageName, false);
        }
        else
        {
            Logo.ImgSource = FoldersHelper.GetPath(FolderType.Pictures, LogoImagePath, false);
        }
        ///

        SettingsDesign.eMainPageMode currentMode = !Demo.IsDemoEnabled || !CommonHelper.GetCookieString("structure").IsNotEmpty()
                              ? SettingsDesign.MainPageMode
                              : (SettingsDesign.eMainPageMode)Enum.Parse(typeof(SettingsDesign.eMainPageMode), CommonHelper.GetCookieString("structure"));

        if (currentMode == SettingsDesign.eMainPageMode.Default)
        {
            menuTop.Visible         = true;
            searchBig.Visible       = false;
            menuCatalog.Visible     = true;
            menuTopMainPage.Visible = false;

            liViewCss.Text = @"<link rel=""stylesheet"" href=""css/views/default.css"" >";
        }
        else if (currentMode == SettingsDesign.eMainPageMode.TwoColumns)
        {
            menuTop.Visible         = false;
            searchBig.Visible       = (SettingsDesign.SearchBlockLocation == SettingsDesign.eSearchBlockLocation.TopMenu);
            menuCatalog.Visible     = false;
            menuTopMainPage.Visible = true;

            liViewCss.Text = @"<link rel=""stylesheet"" href=""css/views/twocolumns.css"" >";
        }
        else if (currentMode == SettingsDesign.eMainPageMode.ThreeColumns)
        {
            menuTop.Visible         = false;
            searchBig.Visible       = (SettingsDesign.SearchBlockLocation == SettingsDesign.eSearchBlockLocation.TopMenu);
            menuCatalog.Visible     = false;
            menuTopMainPage.Visible = true;

            liViewCss.Text = @"<link rel=""stylesheet"" href=""css/views/threecolumns.css"" >";
        }


        foreach (Currency row in CurrencyService.GetAllCurrencies(true))
        {
            ddlCurrency.Items.Add(new ListItem {
                Text = row.Name, Value = row.Iso3
            });
        }

        ddlCurrency.SelectedValue = CurrencyService.CurrentCurrency.Iso3;
    }