private void ChangeCategoryMap(SiteMapResolveEventArgs e, SiteMapNode currentNode) { try { SiteMapNode tempNode = currentNode; Category category = CategoryManager.GetCategoryByID(CategoryId); if (0 != CategoryId) { tempNode.Url = SEOHelper.GetCategoryURL(category.CategoryID); CategoryCollection categCollection = CategoryManager.GetBreadCrumb(category.CategoryID); string categoryPath = categCollection.Aggregate(String.Empty, (current, c) => current + String.Format( String.IsNullOrEmpty(current) ? "{0}" : "/{0}", c.Name)); tempNode.Title = categoryPath; tempNode.Description = categoryPath; } } catch { } }