Esempio n. 1
0
        protected void BrandDropDownList1_SelectedIndexChanged(object sender, EventArgs e)
        {
            // When the brand dropdown is changed, all of the metadata dropdowns
            // also need to be updated to display brand specific values
            MetadataFilters.BrandId = BrandDropDownList1.SelectedId == 0 ? CurrentUser.PrimaryBrandId : BrandDropDownList1.SelectedId;
            MetadataFilters.LoadFilter();

            CategoryId = -1;
            SetupCategories();
        }
Esempio n. 2
0
        private void RebindMetadataFilter()
        {
            int brandId = BrandDropDownList1.SelectedId;

            if (brandId == 0)
            {
                brandId = CurrentUser.PrimaryBrandId;
            }

            MetadataFilters.BrandId = brandId;
            MetadataFilters.LoadFilter();
        }