private void SetParameters(string catId)
        {
            int number;
            int categoryId = Int32.TryParse(catId, out number) ? number : 0;

            #region Set category image
            List <CategoryItem> categories = SharePointConnector.GetCategories();

            foreach (CategoryItem item in categories)
            {
                if (item.Id == categoryId)
                {
                    litCategoryImage.Text = string.Format(
                        @"<span style=""background:url({0}) no-repeat 50% 50%""><span>{1}</span></span>",
                        item.Image, item.Title);
                    break;
                }
            }
            #endregion

            #region Set filter options
            List <string> brands = SharePointConnector.GetBrands(categoryId);

            ddlBrand.DataSource = brands;
            ddlBrand.DataBind();
            #endregion
        }
        protected void PopulateCategories()
        {
            List <CategoryItem> allCategories = SharePointConnector.GetCategories();

            foreach (CategoryItem item in allCategories)
            {
                litCategories.Text += string.Format(
                    @"<a href=""{0}""><p>{1}</p><img src=""{2}"" alt="""" /></a>",
                    item.Url(), item.Title, item.Image);
            }
        }