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

FileUploaded fired twice

1 Answer 191 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
François
Top achievements
Rank 1
François asked on 01 Jul 2011, 08:21 AM
Hello,

I have a RadAjaxManager which fires FileUploaded when the file is uploaded, but when I do a postback, the event is fired another time !

How can I specify that I only want the ajax feature (I do a SaveAs() in FileUploaded, so when the second event is fired, it throw an error)

Thank you in advance !

1 Answer, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 05 Jul 2011, 07:37 AM
Hi François,

If RadAjaxManager doesn't update the RadAsyncUpload control the client state of the control is not reset and that is the reason why the FileUploaded event is fired again. My suggestion is to use custom handler. Please review the following demo.

Kind regards,
Peter Filipov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
AsyncUpload
Asked by
François
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Share this question
or