Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3k views
in .NET FTP by (120 points)
Hi, I'm using edtftpnet on my web site, and I want to show the upload progress - either in a label as plain text, or as a graphical progress bar.

This is proving much harder than I thought. I have registered a BytesTransferredHandler delegate, which gets called fine every 4kb uploaded.

However, if I set my asp:label Text property in there, obviously it doesn't get updated (well, it gets updated, but the new value isn't refreshed for the user).

I've tried adding a Response.Redirect, to refresh the page, but that causes the FTP upload to stop.

Has anyone implemented any kind of progress indicator for an FTP upload on a web page?

2 Answers

0 votes
by (162k points)
You'll need to use threads. edtFTPnet/PRO will soon have an asynchronous ability which would help.
0 votes
by
Hi, I'm using edtftpnet on my web site, and I want to show the upload progress - either in a label as plain text, or as a graphical progress bar.

This is proving much harder than I thought. I have registered a BytesTransferredHandler delegate, which gets called fine every 4kb uploaded.

However, if I set my asp:label Text property in there, obviously it doesn't get updated (well, it gets updated, but the new value isn't refreshed for the user).

I've tried adding a Response.Redirect, to refresh the page, but that causes the FTP upload to stop.

Has anyone implemented any kind of progress indicator for an FTP upload on a web page?


Look for technologies like (Java)scripting, AJAX and/or threading. Perhaps that can be of help for you.

Good luck.

David van Leerdam

Categories

...