Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. Category rootCategory = Category.GetRoot();
  2. CategoryCollection childCategories = rootCategory.Categories;
  3. foreach (Category category in childCategories)
  4. {
  5. // do whatever
  6. }
  7.  
  8. foreach (int catId in CurrentPage.Category)
  9. {
  10. Category category = Category.Find(catId);
  11. // do whatever
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement