Re: How to display only certain categories / + ability to list available categories

  •  08-02-2011, 10:47 AM

    Re: How to display only certain categories / + ability to list available categories

    Hi rmw82,
     
    Try
     
    using (DotNetGallery.GalleryDataProvider provider = DotNetGallery.GalleryDataProvider.CreateInstance(Context, "~/GalleryFiles/"))
            {
                //get all category
                string[] categoryArray = provider.GetCategoryArray();
                for (int i = 0; i < categoryArray.Length; i++)
                {
                    //get id of all categories
                    //categoryArray[i] is the category id
                    label1.Text += categoryArray[i];
                }
            }
     
    Regards,
     
    ken
View Complete Thread