This example uses an ASPxFileManager to display folder contents. Users can click image and PDF files to preview their content in a pop-up window. The preview functionality uses the ASPxPopupControl, ASPxImage, and ASPxPanel controls.
- Default.aspx (VB: Default.aspx)
- Default.aspx.cs (VB: Default.aspx.vb)
The ASPxFileManager displays a list of image and PDF files. When users attempt to open a file, the control raises the ASPxFileManager.SelectedFileOpened event. The handler determines the file type and shows the preview.
The handler activates the ASPxPopupControl and displays one of the following embedded controls depending on the file type:
- The ASPxImage control. Displays images.
- The ASPxPanel control. Uses the
<embed>element to display PDF files.
- ASPxImage Class
- ASPxFileManager Class
- ASPxPanel Class
- Recommended way to embed PDF in HTML - Stack Overflow
(you will be redirected to DevExpress.com to submit your response)
