OnAttachmentAdded when using ManualStartUpload

  •  09-07-2010, 6:22 PM

    OnAttachmentAdded when using ManualStartUpload

    The site I'm developing requires that the user manually specifies the total number of files they're submitting for later comparison with the total number of files they've uploaded...mostly as a precaution against forgotten files.  My goal is to generate a dynamic file count as items are added so that I can compare the two counts prior to upload using Javascript. 
     
    I'm using the AjaxUploaded with the ManualStartUpload flag set but the OnAttachmentAdded event doesn't seem to fire and I'm assuming its because of the ManualStartUpload.  Is there a way to get the file count as items are added when usng the ManualStartUpload flag?
     
    <CuteWebUI:UploadAttachments ID="objUploader" runat="server" ManualStartUpload="true" MultipleFilesUpload="true" InsertButtonID="btnAddFile" OnUploadCompleted="UploadCompleted" OnAttachmentAdded="AttachmentAdded" >

    <
    script runat="server">
       Protected Sub AttachmentAdded(ByVal sender As Object, ByVal args As CuteWebUI.AttachmentItemEventArgs)
          lblNumberFilesAdded.Text = objUploader.Items.Count.ToString   
       End Sub
    </script>
     
    Thanks for your help.
     
    -Sean
View Complete Thread