Skip to main content

ASPxClientUploadControlFileUploadCompleteEventArgs.callbackData Property

Gets a string that contains specific information (if any) passed from the server side for further client processing.


callbackData: string

Property Value

Type Description

A string value representing callback data passed from the server.


Use the callbackData property to obtain specific information which has been collected on the server while handling the ASPxUploadControl.FileUploadComplete server event, and passed via the FileUploadCompleteEventArgs.CallbackData property to the client for final processing.

View Example: Upload Control for ASP.NET Web Forms - How to upload an image and display it on a web page


<script type="text/javascript">
     function onFileUploadStart(s, e) {
     function onFileUploadComplete(s, e) {
          if(e.callbackData) {
               var fileData = e.callbackData.split('|');
               var fileName = fileData[0],
                    fileUrl = fileData[1],
                    fileSize = fileData[2];
               DXUploadedFilesContainer.AddFile(fileName, fileUrl, fileSize);
<dx:ASPxUploadControl ID="UploadControl" runat="server" ClientInstanceName="UploadControl" Width="100%"
     NullText="Select multiple files..." UploadMode="Advanced" ShowUploadButton="True" ShowProgressPanel="True"
     <AdvancedModeSettings EnableMultiSelect="True" EnableFileList="True" EnableDragAndDrop="True" />
     <ValidationSettings MaxFileSize="4194304" AllowedFileExtensions=".jpg,.jpeg,.gif,.png">
     <ClientSideEvents FilesUploadStart="onFileUploadStart" FileUploadComplete="onFileUploadComplete" />

<dx:UploadedFilesContainer ID="FileContainer" runat="server" Width="100%" Height="180" 
     NameColumnWidth="240" SizeColumnWidth="70" HeaderText="Uploaded files" />
See Also