The UploaderBase.FileUploaded event fires after each file is uploaded. If you are uploading three files, then this event will fire three times. If you want to execute function after all files are uploaded, you need to use UploaderBase.UploadCompleted Event.


<%@ Page Language="C#" %> 
<%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader"> 
<script runat="server">   
protected void Uploader1_UploadCompleted(object sender, UploaderEventArgs[] args)    
    string msg = "You have uploaded " + args.Length + " files";    
    foreach (UploaderEventArgs arg in args)    
        msg += "\r\n" + arg.FileName + "," + arg.FileSize;    
    Label1.Text = msg;    
 <title>UploadCompleted sample</title>   
<form id="form1" runat="server"> 
    <CuteWebUI:Uploader runat="server" ID="Uploader1" MultipleFilesUpload="True" OnUploadCompleted="Uploader1_UploadCompleted">   
    <asp:Label runat="server" ID="Label1" /> 

Send feedback about this topic to CuteSoft. © 2003 - 2017 CuteSoft Components Inc. All rights reserved.