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

Problem with multiple Async Upload controls on a page

2 Answers 13 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
J
Top achievements
Rank 1
J asked on 03 Sep 2013, 09:07 PM
I have a user control that contains an Async upload control, a comments text box and a save button. The save button is the Async upload postbackTrigger. This user control has been added multiple times to a page. If a user uploads an image for each upload control and then clicks a save button for any of the upload controls, the server side FileUpload event triggers for all of the uploaded files, not just the upload control where the save button was clicked. How can I get the FileUpload event to trigger only once for the upload control where the save button was clicked? Attached is a screen shot of the form.

Thank You for your help.

2 Answers, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 06 Sep 2013, 08:32 AM
Hi JS,

Straight to the point. To resolve the issue you need to set different ID's to the button for each user control. Please add a property to the user control which sets the button's ID and give different values for every user control.

Regards,
Peter Filipov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
J
Top achievements
Rank 1
answered on 06 Sep 2013, 03:55 PM
That worked perfectly. Thank You.
Tags
AsyncUpload
Asked by
J
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
J
Top achievements
Rank 1
Share this question
or