|
hi there .. i am developing a web application and need to show the progress, i send a thred to threadpool then need control of progress event and progress value ... i define some control class ..............//// a button click raise the upload if (((StatusFtpUpload)Application["ftpupload"]).Running == false){ ThreadPool.QueueUserWorkItem(new WaitCallback(FtpUpload), ((StatusFtpUpload)Application["cpx_ftpupload"])); }
|
|
All you need is to register the
lukas thanks for answer me ... but status is not a rebex.ftp derived class. i define a method:
then at method make this that u say: ftpcontrol.BatchTransferProgress += new FtpBatchTransferProgressEventHandler(progressupdate); but ... how send parameters? thanks againg
(21 Apr '10, 15:43)
Yonnyy
There is no need for the StatusFtpUpload class to be derived from the Rebex.Net.Ftp class. You can register ANY method in the Ftp.BatchTransferProgress event (even the method of your class) as shown in my answer. Just try it ;-)
(21 Apr '10, 15:51)
Lukas Matyska ♦♦
|