UploadCompleted Server-side Event Not Firing

  •  03-23-2010, 11:51 AM

    UploadCompleted Server-side Event Not Firing

    Hi,
     
    I'm doing a multi-file upload triggered manually, instead of each file uploading as it is selected.  I'm performing some actions server-side on each file by using the FileValidating (e.g. log upload to DB, creating some special folders for each file, then moving the file to that folder).  I want to send a single e-mail notification to the user AFTER ALL files are uploaded, so I'd figured I can do it on Postback, but I get an e-mail for each file:
     
    If Not Page.IsPostBack Then
       
    Session("puUploadCount") = 0
    Else
       ' Do postback stuff here (e.g. provide feedback, send e-mail, etc.)
       ShowOnScreenConfirmation()
       SendNotifications()
    End If
     
    I get one e-mail before anything is uploaded, then one for each uploaded file.  So I tried moving my SendNotifications() call to the UploadCompleted event, but it's not firing at all:
     

    Protected Sub Uploads_UploadCompleted(ByVal sender As Object, ByVal args() As CuteWebUI.UploaderEventArgs) Handles Uploads.UploadCompleted

       SendNotifications()

    End Sub

    What's going on?  How can I resolve this?
     
View Complete Thread