Hi,
I'm trying to disable the "submit" button on my page when there are no items to be submitted to the page. This is my UploadAttachments:
- <CuteWebUI:UploadAttachments runat="server" ID="ajaxBinaryAttach" InsertButtonID="btnMultipleAttachment" OnUploadCompleted="enableSubmitBtn" OnAttachmentRemoveClicked="disableSubmitBtn"/>
This is the code for disableSubmitBtn, which should be called when the remove button is clicked:
- protected void disableSubmitBtn(object sender, UploaderEventArgs[] args) {
- if (ajaxBinaryAttach.Items.Count==0) {
- btnSubmitMultiple.Enabled = true;
- }
- }
I get this error message when i try to load the page:
Compiler Error Message: CS0123: No overload for 'disableSubmitBtn' matches delegate 'CuteWebUI.AttachmentItemEventHandler'
Is there any way for me to execute the code in disableSubmitBtn() before the ajaxuploader deals with the rest of what's supposed to happen when the user clicks the remove button?
Best regards,
trbox