Hello,
Here I am posting my code with a new thread. Please check the code.
THE OLD THREAD WAS "https://www.syncfusion.com/forums/173216/show-progressbar-while-uploading-images-using-sync-method " But I did not get a reply from your side.
So,
Here is my ajax CALL actual Code when I click on the button OKCLICKINSERT() function will be called.
document.getElementById("dialogBtn").onclick = function () {
ej.popups.DialogUtility.confirm({
title: ' Confirmation Dialog',
content: "Are you sure you want to upload images into Azure and Update DB",
okButton: {
text: 'OK', click: function () {
okClickInsert();
this.hide();
} },
cancelButton: { text: 'Cancel', click: ClickTest },
showCloseIcon: true,
closeOnEscape: true,
animationSettings: { effect: 'Zoom' }
});
};
function okClickInsert () {
//Other Code
$.ajax({
url: "@Url.Action("UploadFilesinAzure", "UploadFiles")",
data: JSON.stringify(UPLOADToAzure),
type: "POST",
dataType: "json",
contentType: "application/json; charset=utf-8",
beforeSend: onProgress,
complete: onComplete,
success: function (data) {
location.reload();
},
error: function (data) { }
});
}
Now the method " UploadFilesinAzure " is TYPE OF ASYNC AND AWAIT.
[HttpPost]
public async Task
//Other validation code
await DoUploadFileOnlyAsync(FILE Details);
}
During the execution of UploadFilesinAzure() I want to calculate the time and show me the progress bar.
PLEASE GIVE EXACT SOLUTION for my problem, not the random Example.
PLEASE HELP me I am stuck here and my project submission is tomorrow that is why I working on SUNDAY. Please give me the proper solution.
I can do the same task with out synfusion progress bar but my client prefers to use Synfusion Controller I did not get the solution.
You have provided me the code in which Using Ajax calls to display the VIEW BAG value in the progress bar.
Correct?
But my View bag value changed based on the Azure Blob Storage uploading process.
How Can I get the uploading status through View bag to synfusion Progressbag???
Hello
Durga,
I have sent a mail, in which, I have specified my exact problem including my code.
Please check the mail
Email Address: - [email protected] and
Subject:- Syncfusion Forum [173418] has a new reply - Progressbar with Await method execution time.
I can not share all my code here in the public domain.
Thanks