Login  
Search All Forums
Dart Home | PowerTCP FTP for .NET | Custom Development Reply | PowerTCP FTP for .NET Topics | Forums   
AuthorForum: PowerTCP FTP for .NET
Topic: Is there a callback handler
Dawid Meintjes

From: Pretoria, South Africa
Posts: 7
Member Since: 08/24/05
posted August 25, 2005 9:07 AM

Hi

Is there a callback handler when ONE file is upload completely ? We need to know when uploading a directory each time a file is completely uploaded.

Thanx Dawid
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted August 25, 2005 9:12 AM

Yes. See the Progress event. All of the samples use it and there is a full explanation of it in the Online Help.
Dawid Meintjes

From: Pretoria, South Africa
Posts: 7
Member Since: 08/24/05
posted August 25, 2005 9:38 AM

I checked the progress event and the help files. Inserted a simple totalFile to show me the total files but then I get a "A Socket Exception has occurred." error.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted August 25, 2005 10:22 AM

Have you tried the ListView sample yet? Or any of the others? They all seem to work for me. Please try running a couple of the sample apps and watch the code in that is in their progress events.
Dawid Meintjes

From: Pretoria, South Africa
Posts: 7
Member Since: 08/24/05
posted August 25, 2005 10:34 AM

Ok I did check the VB ListView and that works fine.But the ASP Listview doesn't have a Progress example. I tried the to simulate the VB example into my ASP page but that gives me the Socket Exception.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted August 25, 2005 10:39 AM

Please post the code you added to the progress event.
Dawid Meintjes

From: Pretoria, South Africa
Posts: 7
Member Since: 08/24/05
posted August 25, 2005 10:40 AM

txtDir.Text = "Currently transferring " + e.TotalFiles
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted August 25, 2005 10:57 AM

I don't see why that would cause a socket exception.

It should cause an exception because you aren't doing a ToString on Totalfiles.

I think the socket exception is probably unrelated to the progress event.
Dawid Meintjes

From: Pretoria, South Africa
Posts: 7
Member Since: 08/24/05
posted August 25, 2005 11:03 AM

Thanks Tony that solved the problem.
Reply | PowerTCP FTP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX