Unfortunately, having more than one AjaxFileUpload control within the same web page will not work. This has been documented by other developers who have run into the same issue but trying to find it on the Internet is close to impossible unless you enter the right search terms into the selected search engine.
By placing two AjaxFileUpload controls on the same page and correctly specifying their event methods as it regards the server side will eventually lead one to complete madness as the second of the two controls will always default to the upload event method of the first. One developer who ran into this issue believes that this form of default processing was specifically designed. However, if this is true, why not properly document it?
You would think that such a severe limitation would be well documented but so far I have not found any such information beyond those who have posted similar issues.
If anyone has been successful with the use of multiple AjaxFileUpload controls on a single web page, please then post how this was accomplished as there are times where the use of multiple controls is warranted when there is a requirement to control where and how uploads are to be processed and stored...
Comments: I also have struggled with this issue and many before us as you can see in thread: http://ajaxcontroltoolkit.codeplex.com/workitem/27175 Also a solution was found which I implemented succesfully in the previous version of the toolkit. But since the current version (which has great improvements and I just have to have) has some compile errors in the source code, I can't fix it no more. For this solution see: http://stackoverflow.com/questions/10760895/ajax-toolkit-file-upload-is-not-called The solution is fairly simple and I hope it will get fixed within the next build. Regards, PJ
By placing two AjaxFileUpload controls on the same page and correctly specifying their event methods as it regards the server side will eventually lead one to complete madness as the second of the two controls will always default to the upload event method of the first. One developer who ran into this issue believes that this form of default processing was specifically designed. However, if this is true, why not properly document it?
You would think that such a severe limitation would be well documented but so far I have not found any such information beyond those who have posted similar issues.
If anyone has been successful with the use of multiple AjaxFileUpload controls on a single web page, please then post how this was accomplished as there are times where the use of multiple controls is warranted when there is a requirement to control where and how uploads are to be processed and stored...
Comments: I also have struggled with this issue and many before us as you can see in thread: http://ajaxcontroltoolkit.codeplex.com/workitem/27175 Also a solution was found which I implemented succesfully in the previous version of the toolkit. But since the current version (which has great improvements and I just have to have) has some compile errors in the source code, I can't fix it no more. For this solution see: http://stackoverflow.com/questions/10760895/ajax-toolkit-file-upload-is-not-called The solution is fairly simple and I hope it will get fixed within the next build. Regards, PJ