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

Prevent data loss on post back

1 Answer 243 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Vinod
Top achievements
Rank 1
Vinod asked on 28 Sep 2016, 06:28 PM

Hi 

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

Vinod

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Anton
Telerik team
answered on 29 Sep 2016, 12:55 PM
Hi,

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.

Regards,
Anton
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.
Tags
AsyncUpload
Asked by
Vinod
Top achievements
Rank 1
Answers by
Anton
Telerik team
Share this question
or