Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Photo Gallery

Click a photo to enlarge it.

This demo illustrates how to create a photo gallery using the DevExpress ASP.NET Image Slider (ASPxImageSlider).

Photos are displayed in the table using the ASP.NET Data View (ASPxDataView) control. Click a photo to open a popup window containing a photo gallery. The gallery is implemented using the ASPxImageSlider control. Users can view photos using special navigation buttons or by a swipe gesture within the image slider. Additionally, the demo shows how to provide key support for the gallery: press the Space bar to see the next photo, or press the Escape key to close the gallery and return to the data view table.

Additionally, this demo shows how to create a link to a specific photo. For this purpose, the ActiveItemChanged client-side event is handled. In the event handler, we add an anchor to the current image link, allowing you to get the URL to the current image from a browser address bar.

Note that the image gallery functionality is built into the Image Gallery control.

Collapse/Expand
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
Open VB Solution
The source code files for this demo are installed (by default) in the following directories:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\ASPxImageAndDataNavigationDemos
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\VB\ASPxImageAndDataNavigationDemos