This is a migrated thread and some comments may be shown as answers.

RadAsyncUpload error with UpdatePanel Trigger

2 Answers 176 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
VnDevil
Top achievements
Rank 2
VnDevil asked on 09 Feb 2012, 08:12 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Bozhidar
Telerik team
answered on 09 Feb 2012, 03:05 PM
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 >>
0
VnDevil
Top achievements
Rank 2
answered on 10 Feb 2012, 02:12 AM
Ok, I did it, Thanks alot ^^
Tags
AsyncUpload
Asked by
VnDevil
Top achievements
Rank 2
Answers by
Bozhidar
Telerik team
VnDevil
Top achievements
Rank 2
Share this question
or