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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Bechir BejaouiPosted Dec 21, 2008, 4:28 PM
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