Ejemplo n.º 1
0
 protected void rptrManufacturers_ItemDataBound(object sender, RepeaterItemEventArgs e)
 {
     if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item)
     {
         Manufacturer manufacturer   = e.Item.DataItem as Manufacturer;
         HyperLink    hlManufacturer = e.Item.FindControl("hlManufacturer") as HyperLink;
         if (hlManufacturer != null)
         {
             hlManufacturer.NavigateUrl = SEOHelper.GetManufacturerURL(manufacturer);
         }
     }
 }
Ejemplo n.º 2
0
        private void WriteManufacturers()
        {
            ManufacturerCollection manufacturers = ManufacturerManager.GetAllManufacturers(false);

            foreach (Manufacturer manufacturer in manufacturers)
            {
                string          url             = SEOHelper.GetManufacturerURL(manufacturer);
                UpdateFrequency updateFrequency = UpdateFrequency.weekly;
                DateTime        updateTime      = manufacturer.UpdatedOn;
                WriteUrlLocation(url, updateFrequency, updateTime);
            }
        }