Problem with multiple Async Upload controls on a page

3 posts, 0 answers
  1. J
    J avatar
    2 posts
    Member since:
    Sep 2013

    Posted 03 Sep 2013 Link to this post

    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. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 06 Sep 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. J
    J avatar
    2 posts
    Member since:
    Sep 2013

    Posted 06 Sep 2013 Link to this post

    That worked perfectly. Thank You.
Back to Top