I am using UpdatePanel to trigger a button click event, which saves some 100+ files on a designated folder. I want the server to update the client about the status and count of files being saved.
protected void btnSave_Click(...){
var filesToSave = GetFilesToSave();
foreach(var fileToSave in filesToSave){
SaveProcessedFile(fileToSave);//It takes almost 30seconds to save a file
UpdateStatusOnClient(fileToSave); //Don;t know what should be done here???????????
}
}
I am looking for some implementation of "UpdateStatusOnClient" from where i can send a desired message to client, or update a label message asynchronously so that the client knows the progress and status of files being saved.
Thanks.