Need Help Getting Uploader To Work On My Page.

Last post 12-22-2008, 11:12 PM by cutechat. 6 replies.
Sort Posts: Previous Next
  •  12-15-2008, 4:52 PM 46954

    Need Help Getting Uploader To Work On My Page.

    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!
  •  12-16-2008, 4:39 PM 46993 in reply to 46954

    Re: Need Help Getting Uploader To Work On My Page.

    *Deleted this post*
     
    I still need to know if I can use C# to create this control in a UpdatePanel.
  •  12-18-2008, 9:09 AM 47084 in reply to 46954

    Re: Need Help Getting Uploader To Work On My Page.

    Hi,
     
    I suggest you put a <asp:Panel> inside the UpdatePanel, and then add the uploader into the aspPanel1
     
    Regards,
    Terry
  •  12-18-2008, 4:50 PM 47109 in reply to 47084

    Re: Need Help Getting Uploader To Work On My Page.

    I already tried that.  What I ended up doing was to forget trying to add the Uploader control programatically in C#.  Everything I tried caused undefined indentifiers in JavaScript.  I instead just add an iframe inside of the update panel and set up the control in a new *.aspx page as the "src" attribute.  That was the only way I could get it to work.

    All of the Uploader demos appear to be on static pages.  Cutesoft needs to make a demo that adds the control progromatically to the page via the server in VB and C#.

  •  12-19-2008, 2:33 AM 47115 in reply to 47109

    Re: Need Help Getting Uploader To Work On My Page.

    Hi,
     
    We just found that relative to the DotNetFrameworks3.5 ,
     
    We can fix it today.
     
    Regards,
    Terry
  •  12-19-2008, 1:23 PM 47143 in reply to 47115

    Re: Need Help Getting Uploader To Work On My Page.

    When you get the fix posted, I'll give it a try.
  •  12-22-2008, 11:12 PM 47191 in reply to 47143

    Re: Need Help Getting Uploader To Work On My Page.

    Hi,
     
    We have upload the last version . Please try it.
     
    Regards,
    Terry
View as RSS news feed in XML