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

AsyncUpload on UserControl not firing fileuploaded event

5 Answers 121 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Sabrina Schubert
Top achievements
Rank 1
Sabrina Schubert asked on 28 May 2010, 09:03 AM
Hi All,

I have a requirement of having a async upload control with binary image control on a user control and this user control will be attached with an aspx file. So the issue here is the "FileUploaded" event is not triggered; when i select the file thereby, i was not able to display the thumbnail in binary image control. As guided in the online demo, i've added the ajax manager & respective javascript; but it throws a java script error.

Can anyone has faced this issue and has a solution? Please share

Cheers,
Sathish. R

5 Answers, 1 is accepted

Sort by
0
Dimitar Milushev
Telerik team
answered on 28 May 2010, 01:08 PM
Hi Sabrina,

What is the javascript error that is being thrown?

Kind regards,
Dimitar Milushev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Sabrina Schubert
Top achievements
Rank 1
answered on 28 May 2010, 10:01 PM
Hi Dimitar,

I get the following Java Script error:

"null or not an object".

Cheers,
Sathish. R
0
Dimitar Milushev
Telerik team
answered on 02 Jun 2010, 02:48 PM
Hello Sabrina,

I wasn't able to reproduce the problem locally. Can you please check the attached test project and let me know if I am missing something about your scenario?

Regards,
Dimitar Milushev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Willem
Top achievements
Rank 1
answered on 25 Jul 2011, 04:53 PM
Does this mean that i always need to implement a client side OnClientFileUploaded="fileUploaded" before the server side uploaded event is fired?
0
Peter Filipov
Telerik team
answered on 26 Jul 2011, 11:04 AM
Hello Willem,

To implement the following scenario, you need to subscribe to the OnClientFileUploaded client-side event and trigger a postback after an image is uploaded. When a postback occurs the FileUploaded server event is fired for the uploaded file.

All the best,
Peter Filipov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
AsyncUpload
Asked by
Sabrina Schubert
Top achievements
Rank 1
Answers by
Dimitar Milushev
Telerik team
Sabrina Schubert
Top achievements
Rank 1
Willem
Top achievements
Rank 1
Peter Filipov
Telerik team
Share this question
or