Пример #1
0
    private void Manufacturer_StoreCultureChanged(object sender, CultureEventArgs e)
    {
        Vevo.Domain.Products.Manufacturer manufacturer = DataAccessContext.ManufacturerRepository.GetOne(
            StoreContext.Culture, ManufacturerID);
        string newURL = UrlManager.GetManufacturerUrl(ManufacturerID, manufacturer.UrlName);

        Response.Redirect(newURL);
    }
Пример #2
0
 private void PopulateTitleAndMeta(DynamicPageElement element)
 {
     Vevo.Domain.Products.Manufacturer manufacturer = DataAccessContext.ManufacturerRepository.GetOne(
         StoreContext.Culture, CurrentManufacturerID);
     element.SetUpTitleAndMetaTags(
         manufacturer.Name,
         manufacturer.GetMetaDescription(StoreContext.Culture),
         manufacturer.GetMetaKeyword(StoreContext.Culture));
 }
Пример #3
0
    private void PopulateControls()
    {
        DynamicPageElement element = new DynamicPageElement(this);

        if (CurrentManufacturerID == "0")
        {
            element.SetUpTitleAndMetaTags("[$Title]", NamedConfig.SiteDescription);
        }
        else
        {
            Vevo.Domain.Products.Manufacturer manufacturer = DataAccessContext.ManufacturerRepository.GetOne(
                StoreContext.Culture, CurrentManufacturerID);

            if (manufacturer.IsEnabled)
            {
                PopulateTitleAndMeta(element);
            }
            else
            {
                Response.Redirect("~/Error404.aspx");
            }
        }
    }
Пример #4
0
 private void RefreshTitle()
 {
     Vevo.Domain.Products.Manufacturer manufacturerItem = DataAccessContext.ManufacturerRepository.GetOne(StoreContext.Culture, ManufacturerID);
     pageTitle = manufacturerItem.Name;
     uxManufacturerNameLabel.Text = manufacturerItem.Name;
 }