The demo pages supplied by CuteSoft for the uploader work perfectly on my server. When I attempt to use the Uploader control from within an update panel in a page in my own application, it fails: The progress dialog chugs along and the first file gets uploaded into the temporary folder, but before either my "FileUploaded" function is called on the server or the "CuteWebUI_AjaxUploader_OnPostback" function is called on the client, I get the this exception thrown from the browser:
"ASP.NET Ajax client-side framework failed to load."
The client code snippet causing this is a short function:
<script type="text/javascript">
//<![CDATA[
if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
//]]>
</script>
I don't know how Microsoft's client-side framework is not being loaded since my page is using it just before I load the control.
What I am attempting here is to create the uploader control in an update panel from my C# code on the server. This is my server-side code to add the uploader:
Uploader uploader = new Uploader();
uploader.ID = "CuteUploader";
uploader.ManualStartUpload = false;
uploader.MultipleFilesUpload = true;
uploader.MaxFilesLimit = 6;
uploader.FileUploaded += new UploaderEventHandler(onFileUploaded);
uploader.TempDirectory = ProjectFactory.GetUserTempUploadDir(profile);
panel.ContentTemplateContainer.Controls.Add(uploader);
"panel" is an instance of the ASP .Net UpdatePanel class. I am using ASP .Net 3.5.
Can anyone give me a clue what I'm, doing wrong here? Thanks!