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
#Property Value
Type | Default | Description |
---|---|---|
String | String. |
A string value specifying the path to the folder. |
#Property Paths
You can access this nested property as listed below:
Object Type | Path to Image |
---|---|
ASPx |
|
#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.