Prevent data loss on post back

2 posts, 1 answers
  1. Vinod
    Vinod avatar
    2 posts
    Member since:
    Sep 2016

    Posted 28 Sep 2016 Link to this post


    How can I prevent without losing the data of radasyncupload on post back. My requirement is that onFileUploaded I need to assign the count of number of uploaded files to repeater control(this is done on server side, so post back is happening here) and on click of upload in a repeater item, I need to transfer the file to some other location. But on button click I'm not able to retain radasyncupload data as I'm already doing one post back to assign data to repeater control. 

    Thanks in advance



  2. Answer
    Anton avatar
    81 posts

    Posted 29 Sep 2016 Link to this post


    RadAsyncUpload provides the PostbackTriggers property, which can be used to persist the information about the successfully uploaded files after a postback. Using that property, the information about the successfully uploaded files will be persisted after every postback until an exact control triggers a postback.

    For more information take a look at the AsyncUpload - Uploaded File Persistence across Postbacks demo.

    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top