Skip to main content
Tab

ImageGalleryFolderSettings.ImageCacheFolder Property

Gets or sets the path to the folder that contains cached images.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

NuGet Package: DevExpress.Web

#Declaration

[DefaultValue("")]
public string ImageCacheFolder { get; set; }

#Property Value

Type Default Description
String String.Empty

A string value specifying the path to the folder.

#Property Paths

You can access this nested property as listed below:

Object Type Path to ImageCacheFolder
ASPxImageGallery
.SettingsFolder .ImageCacheFolder

#Remarks

When the ImageGalleryFolderSettings.ImageSourceFolder property is specified, the ASPxImageGallery caches the images from the source folder to the folder specified via the ImageCacheFolder property.

Note

By default, images are cached to the public “~\Thumb\“ folder that can result in unauthorized access to private files, therefore we recommend you set restricted access for this folder.

protected void Page_Load(object sender, EventArgs e) {
     imageGallery.SettingsFolder.ImageSourceFolder = cbSelectFolder.Value.ToString();
     imageGallery.SettingsFolder.ImageCacheFolder = "~\Thumb\ImageGalleryThumb\";
}

For a full example, see Image Gallery - Folder Binding demo.

See Also