Hi narendrababu,
You can use the code below to get the category name. title is the category name, "~/GalleryFiles/" is your gallery folder location.
- void Page_Load(object sender, EventArgs e)
- {
- using (DotNetGallery.GalleryDataProvider provider = DotNetGallery.GalleryDataProvider.CreateInstance(Context, "~/GalleryFiles/"))
- {
-
- string[] categoryArray = provider.GetCategoryArray();
- for (int i = 0; i < categoryArray.Length; i++)
- {
- string title;
- string description;
- string properties;
-
- if (provider.GetCategoryInfo(categoryArray[i].ToString(), out title, out description, out properties))
- {
-
-
- label1.Text += title;
- }
- }
- }
- }
Regards,
Ken