Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Category rootCategory = Category.GetRoot();
- CategoryCollection childCategories = rootCategory.Categories;
- foreach (Category category in childCategories)
- {
- // do whatever
- }
- foreach (int catId in CurrentPage.Category)
- {
- Category category = Category.Find(catId);
- // do whatever
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement