Hello,
I am trying to use the AjaxFileUpload (http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AjaxFileUpload/AjaxFileUpload.aspx).
If I implement it on an ASPX page, there are no issues and everything works well. If I however try to implement it on a User Control (ASCX) nothing works. Here is my code
<ajaxToolkit:AjaxFileUpload ID="AjaxFileUpload1" runat="server" MaximumNumberOfFiles="1" OnUploadComplete="File_UploadComplete" OnClientUploadComplete="uploadComplete" OnClientUploadError="uploadError" />
I have added the code-behind event and also the JS calls to separate JS file which I register during my Page_Load override. The problem is that my breakpoint is not hit after the file is uploaded and no JS calls are made. The behaviour that I get is it goes from (pending) after I select a file, to (uploading) after I press the Upload button to (error) without any details.
Has anyone experienced this behavior or have an idea how to fix it?
Thanks,