RadAsyncUpload error with UpdatePanel Trigger

3 posts, 1 answers
  1. VnDevil
    VnDevil avatar
    58 posts
    Member since:
    Oct 2012

    Posted 09 Feb 2012 Link to this post

    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
  2. Answer
    Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 09 Feb 2012 Link to this post

    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 >>
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. VnDevil
    VnDevil avatar
    58 posts
    Member since:
    Oct 2012

    Posted 09 Feb 2012 Link to this post

    Ok, I did it, Thanks alot ^^
Back to Top