ASP.NET File Manager - Download Files (available now in v2011.1)

ASP.NET Team Blog
24 March 2011

Check out the new 'Download File' feature of our slick ASP.NET File Manager that's available now in DXperience v2011.1 release:

DevExpress ASP.NET File Manager's New Download File Feature in FireFox Browser

Download Selected File

With the next major release, your end-users will have the ability to download a selected file from the User Interface of the ASPxFileManager!

New Toolbar Button

A new toolbar item has been introduced: the Download button. It's hidden by default and to show it, just set:

SettingsToolbar.ShowDownloadButton = true

New Client-Side API

A new client-side method and event have been added to help you with the download file feature:

The new client-side method, ASPxClientFileManager.Download, helps you to invoke the selected file download. For example, you can call it from an external button like so:


There's also a new client-side event called FileDownloading which helps you to add things like a confirmation dialog:

FileDownloading="function(s, e) {
    e.cancel = !confirm('Are you sure you want to download ' + + ' ?');

New Server-Side Event

A new server-side event called FileDownloading has been added. The new event helps you work with the file stream. For example, you can use this server-side event to add a watermark to the downloaded image files:

// Arguments members:
// FileManagerFile File
// Stream InputStream - stream of file from file system
// Stream OutputStream - is null, but you can set new stream (replace original input stream) for downloading
// bool Cancel
// For example:

protected void ASPxFileManager1_FileDownloading(object source, DevExpress.Web.ASPxFileManager.FileManagerFileDownloadingEventArgs e) {
    if (IsImageExtension(e.File.Extension))
        e.OutputStream = AddWatermarkToImage(e.InputStream);

Part of v2011 vol 1

The new 'Download File' feature of our ASP.NET File Manager is available now with DXperience v2011 volume 1 release.


What do you think of the new download file feature?

Drop me a line below with your thoughts. Thanks.


DXperience? What's That?

DXperience is the .NET developer's secret weapon. Get full access to a complete suite of professional components that let you instantly drop in new features, designer styles and fast performance for your applications. Try a fully-functional version of DXperience for free now:

Follow MehulHarry on Twitter

Free DevExpress Products - Get Your Copy Today

The following free DevExpress product offers remain available. Should you have any questions about the free offers below, please submit a ticket via the DevExpress Support Center at your convenience. We'll be happy to follow-up.
No Comments

Please login or register to post comments.