ASP.Net Ajax AsyncFileUpload control not firing server side OnUploadCompleted event -
I am writing an application for which the user needs to upload files to server machine. All user interaction with the user is done by JQuery UI model popup. I created a test page to see that AsyncFileUpload control works, and everything works fine on this I have added the incompatible file upload to that webform which I need it, in a modal popup but for some reason The server side event is never removed. The only difference on this page from the test page is that I send a variable to a query string, which stores in the viewsto at the initial load of the page (so it is not necessary on future postbacks). Any ideas?
Thanks
When you use Asyncfile, you set the right parameter In the "form" tag, which is placed on your page or master page:
form id = "form1" runat = "server" antipaype = "multipart / form-data" Method = "post" & gt;
If you do not set the correct encryption and method, then will never fire completely , and you FileUpload.FileBytes Since FileUpload.HasFile only returns true returns during uploaded completed execution.
I think you have not installed the correct antipype on your modal popup.
In addition to this, the prevoise versions of the Async file upload did not work on Chrome. The actual version (4.1.50731.0) solved the problem.
Comments
Post a Comment