/// <summary> /// Binds the data. /// </summary> private void BindData() { SearchFilter.Items.Clear(); SearchFilter.Items.Add(new ListItem(RM.GetString("GENERAL_ALL_PRODUCTS"), "")); string cacheKey = CatalogCache.CreateCacheKey("mc-catalogentry-list"); // check cache first object cachedObject = CatalogCache.Get(cacheKey); MetaClassCollection metaClasses = null; MetaClass catalogEntry = MetaHelper.LoadMetaClassCached(CatalogContext.MetaDataContext, "CatalogEntry"); if (catalogEntry != null) { metaClasses = catalogEntry.ChildClasses; } if (metaClasses != null) { foreach (MetaClass metaClass in metaClasses) { SearchFilter.Items.Add(new ListItem(metaClass.FriendlyName, metaClass.Name)); } } SearchFilter.DataBind(); Search.Text = Request.QueryString["search"]; CommonHelper.SelectListItem(SearchFilter, Request.QueryString["filter"]); }