Free Trial Buy Now

Upload Control - Custom Progress and Result Indication

Clear selectionBrowse...
Remove
Clear selectionBrowse...
Remove
Add
Upload

Note: The size of each file selected to upload is limited by 10Mb in this demo.


Description

In addition to the built-in progress panel, the ASPxUploadControl provides you with the capability to create a custom file upload visualization. For this purpose, you can use the UploadingProgressChanged client event. It exposes all the required information about the current state of the file upload, such as the total count and size of the files selected for uploading, the currently uploaded file's name, the already uploaded files' size, and the current progress value (in percentage).

This demo illustrates how a custom progress panel can be implemented by handling the UploadingProgressChanged client event and using a separate ASPxProgressBar control displayed within an ASPxPopupControl.

In this demo, it is also illustrated how to implement custom visualization of the file upload result. Automatically obtained error information, or any custom operation result, is received from the server side and displayed within an alert message box instead of being shown under file inputs within ASPxUploadControl. For this purpose, the control's ValidationSettings.ShowErrors property is disabled (to suppress default error indication), and both server and client FilesUploadComplete events are handled (to identify the operation result on the server and to process and display it on the client).

Note that ASPxUploadControl is used in advanced upload mode in this demo (the UploadMode property is set to 'Advanced').

Version: v2012 vol 2.8
Experience the DevExpress Difference Today
Demos with source code are included with an installation of DevExpress controls for ASP.NET. Refer to the Demos and Sample Applications topic to learn more.
To download your free evaluation copy of our award-winning ASP.NET libraries, visit the Downloads page
All DevExpress ASP.NET Controls ship as part of DXperience ASP.NET, Enterprise, and Universal.
To obtain pricing information, visit the Pricing Options page or contact us via Email at info@devexpress.com
or by telephone at +1 (818) 844-3383 between 8:30am and 5pm Pacific Time.