private void LoadMainCategories() { ProductSearchEngine.Business.Adapters.CategoryAdapter categoryAdapter = new Business.Adapters.CategoryAdapter(); HeaderCategoriesDropDownList.DataSource = categoryAdapter.GetMainCategories(); HeaderCategoriesDropDownList.DataTextField = "Name"; HeaderCategoriesDropDownList.DataValueField = "Id"; HeaderCategoriesDropDownList.DataBind(); HeaderCategoriesDropDownList.Items.Insert(0, new ListItem("All Categories", "0")); HeaderCategoryRepeater.DataSource = categoryAdapter.GetMainCategories(); HeaderCategoryRepeater.DataBind(); }
private void LoadMainCategories() { ProductSearchEngine.Business.Adapters.CategoryAdapter categoryAdapter = new Business.Adapters.CategoryAdapter(); FooterCategoryRepeater.DataSource = categoryAdapter.GetMainCategories().Take(6); FooterCategoryRepeater.DataBind(); }