ImageGalleryFolderSettings.ImageCacheFolder Property
Gets or sets the path to the folder that contains cached images.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
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 |
|
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.
<dx:ASPxComboBox ID="cbSelectFolder" runat="server" AutoPostBack="True" SelectedIndex="0" Caption="Select Folder">
<Items>
<dx:ListEditItem Text="Landscapes" Value="~\Content\Images\landscapes\" />
<dx:ListEditItem Text="People" Value="~\Content\Images\people\" />
<dx:ListEditItem Text="Photo Gallery" Value="~\Content\Images\photo_gallery\" />
</Items>
</dx:ASPxComboBox>
<dx:ASPxImageGallery ID="imageGallery" runat="server" Width="100%" />
For a full example, see Image Gallery - Folder Binding demo.
See Also