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); } } }
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); } }