hide submit button when no files added

  •  05-25-2010, 7:14 AM

    hide submit button when no files added

    Hi!
     
    I'm setting up the manual multiple file uploader.
    It's functioning but I'd like to hide the submit button when there aren't any files selected for upload yet.
    I tried with:
    <CuteWebUI:UploadAttachments runat="server" ManualStartUpload="true" ID="Uploader1" ProgressPanelWidth="300" ProgressBarStyle="Continuous"
                    InsertText="Select Files" OnFileUploaded="Uploader_FileUploaded" OnAttachmentAdded="Uploader_AttachmentAdded" OnAttachmentRemoveClicked="Uploader_AttachmentRemoved">
                </CuteWebUI:UploadAttachments>
     
    I created the function
    public void Uploader_AttachmentAdded(object sender, AttachmentItemEventArgs args)
    {
        SubmitButton.Visible = true;
    }
     
    ... but this function doesn't execute when I select files to be uploaded.
    What am I doing wrong?
     
    Thank you.
    Dieter
     
View Complete Thread