I have successfully implemented the AjaxFileUpload Control in my project.
Now, I am facing a challenge where I need to dynamically add a file to the AjaxFileUpload Control upon clicking a separate button. This will ensure that the FileUploadControl contains the selected file when the button is clicked.
My goal is to make sure that all events associated with the AjaxFileUpload Control also work seamlessly with this additional button.
Below is the code snippet for reference:
<cc1:AjaxFileUpload ID="AjaxFileUpload3" runat="server" AllowedFileTypes="zip" Enabled="true"
MaximumNumberOfFiles="1" OnUploadComplete="File_Upload" OnClientUploadComplete="UploadCompleteArchive"
Width="240px" />
<asp:UpdatePanel runat="server">
<ContentTemplate>
<asp:HiddenField ID="hfBoxZip_URL" runat="server" />
<asp:HiddenField ID="hfBoxZip_Name" runat="server" />
<asp:Button ID="btnZip" runat="server" Text="Button" OnClick="btnZip_Click" style="display:none;"/>
</ContentTemplate>
</asp:UpdatePanel>
I am seeking assistance either through JavaScript or CodeBehind (C#) to achieve this functionality.
Your help and guidance on this matter would be highly appreciated.