Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > AsyncUpload > RadAsyncUpload error with UpdatePanel Trigger

Answered RadAsyncUpload error with UpdatePanel Trigger

Feed from this thread
  • Posted on Feb 9, 2012 (permalink)

    Hi Telerik,

    I'm using RadAsyncUpload with UpdatePanel, when add a PostBackTrigger, RadAsyncUpload working error,
    Please review my demo code from url below

    http://www.mediafire.com/?2cpxj1dwh3sebia

    My example code's in ErrorWithUpdatePanel.aspx file.
    When running with RadAjaxManager it's ok ~> ErrorWithUpdatePanel_OK.aspx
    Please help. Thanks a lot

    Reply

  • Answer Bozhidar Bozhidar admin's avatar

    Posted on Feb 9, 2012 (permalink)

    Hi,

    I'm afraid I wasn't able to understand what was the desired behavior. The AjaxManager and the UpdatePanel are not set up similarly, so they produce different results. Could you be a little more specific as to what is supposed to happen when you select a file?

    If you want the version with the UpdatePanel to behave like the one with the AjaxManager, you have to set it up like so:
    <asp:UpdatePanel runat="server" ID="UpdatePanel1">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnUpload" />
        </Triggers>
        <ContentTemplate>
            <asp:Button runat="server" ID="btnUpload" OnClick="btnUpload_Click" ClientIDMode="Static" />
        </ContentTemplate>
    </asp:UpdatePanel>
                
    <telerik:RadAsyncUpload runat="server" ID="txtImage" OnClientFileUploadFailed="onUploadFailed"
        OnClientFileSelected="onFileSelected" OnClientFileUploaded="onFileUploaded" MaxFileInputsCount="1">
    </telerik:RadAsyncUpload>


    Regards,
    Bozhidar
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

  • Posted on Feb 9, 2012 (permalink)

    Ok, I did it, Thanks alot ^^

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > AsyncUpload > RadAsyncUpload error with UpdatePanel Trigger
Related resources for "RadAsyncUpload error with UpdatePanel Trigger"

ASP.NET AsyncUpload Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]