Hi everyone,
How to upload a file with progressbar (displaying the actual size of the uloading file) in ASP.NET(C#) maybe Silverlight. Pls no Flash.
Please any example or helping material.
Lukas
Hi everyone,
How to upload a file with progressbar (displaying the actual size of the uloading file) in ASP.NET(C#) maybe Silverlight. Pls no Flash.
Please any example or helping material.
Lukas
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Bechir BejaouiRank #144 · 15.9K reputationPosted Dec 21, 2008, 11:28 AM EST
create a new system.net.webclient
WebClient wClient = new WebClient();
wClient.UploadProgressChanged += new UploadProgressChangedEventHandler(Progress);
wClient.UploadFileAsync(new Uri("adrress to where the file will be uploaded"), thefilepathinthedisk);
private void Progress(object sender, UploadProgressChangedEventArgs e)
{
// the progress
progressBarobject.Value = e.ProgressPercentage;
}
Indeed I have written an article about the progress bar within Silverlight context
http://www.c-sharpcorner.com/UploadFile/yougerthen/311172008084236AM/3.aspx
So combine this with what you will find in the article to build the solution