コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
 private void LoadMainCategories()
 {
     ProductSearchEngine.Business.Adapters.CategoryAdapter categoryAdapter = new Business.Adapters.CategoryAdapter();
     FooterCategoryRepeater.DataSource = categoryAdapter.GetMainCategories().Take(6);
     FooterCategoryRepeater.DataBind();
 }
コード例 #4
0
 private void LoadMainCategories()
 {
     ProductSearchEngine.Business.Adapters.CategoryAdapter categoryAdapter = new Business.Adapters.CategoryAdapter();
     FooterCategoryRepeater.DataSource = categoryAdapter.GetMainCategories().Take(6);
     FooterCategoryRepeater.DataBind();
 }