Asked by:
FTP Transfer in ASP.NET?

Question
-
User215401648 posted
Does anybody know if its possible to transfer a file to another machine using FTP in my ASP page? I'm trying to re-write a VB6 application using ASP.NET. This app display a user input form and when the user clicks the submit button all the details from the web form are written to a text file on the web server and then transferred to another machine via FTP. The VB6 app is using the wininet.dll api to do same. I'm looking for a simple solution so any guidelines or references would be much appreciated. Thanks in advanceFriday, November 7, 2003 6:37 AM
All replies
-
User-1029435529 posted
Writing an FTP component is not a simple exercise. So, the "simple" solution is to buy an FTP component. I bought Rebex FTP for .NET. It is wonderfully simple to use. Download the trial version and see if it provides the functionality you need.Friday, November 7, 2003 6:57 AM -
User-2129582625 posted
Why don't you check below link http://www.dotnetbips.com/displayarticle.aspx?id=26 This is a free component! Also try in Gotdotnet samples. You will find many free ASPNET FTP comonents with source! Good luck!Friday, November 7, 2003 7:04 AM -
User215401648 posted
Thanks guys. I'm in the process of trying out the the two components you mention. Problem is... I'm trasnferring to a mainframe machine running Open VMS. Not sure if these components are compatible or not. Only time will tell.Friday, November 7, 2003 7:27 AM -
User215401648 posted
The Rebex component was good. I was able to produce the required functionality in 7 lines of code. Thanks!!!Friday, November 7, 2003 8:29 AM -
User-646379438 posted
An other approach is to use VisualPaseo, a freeware that provide Graphical interface to configure component like FTP.
Ftp wizards published are FTP wininet, Catalist and command mode. They all provide the initial account for mainframe connection.
Download: ViualPaseo Community Edition
Find out more : http://www.paseosoft.com<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
Tuesday, April 11, 2006 8:06 AM -
User1119954915 posted
I've got a DLL called "FTPFactory.dll" that I found somewhere a few years ago, works fine with ASP.NET, some sample code of my usage of it:
Top of code behind:
Imports FtpLib
In the function or sub to do the FTP-ing:
Dim Client As FTPFactory = New FTPFactory
Client.setRemoteHost("The FTP server name or IP goes here")
Client.setRemoteUser("Login Username goes here")
Client.setRemotePass("Login Password goes here")
Client.login()
Client.setBinaryMode(True) 'Setsupload mode to binary
Some methods available (Intellisense helps with this stuff below)
.chdir 'Changes directory
.mkdir 'Creates a directory
.upload 'Uploads a file, make sure to use the *full* path
.renameRemoteFile
.close() 'Closes the connection
There's also methods for deleting and moving and other stuff
If you'd like it, just email me (my username @ my username . com) and I can shoot you over the assembly.... (just a forewarning, i think gmail will block the email even though its inside a zip since is a dll file, so provide a non-gmail addy)
Tuesday, April 11, 2006 8:56 AM -
User-667608363 posted
Hi MorningZ, can I have the code and the dll please, I am using .net 2.0Wednesday, October 29, 2008 9:53 AM -
User-1659704165 posted
Hi,
http://www.devasp.net/net/articles/display/280.html
http://www.codeguru.com/csharp/.net/net_security/authentication/article.php/c15051
http://www.15seconds.com/issue/080327.htm
http://geekswithblogs.net/mikeymac/archive/2006/03/10/71990.aspx
check the above link Contain Asp.net 2.0 Ftp Support..code
Monday, May 25, 2009 8:00 AM -
Tuesday, September 15, 2009 5:11 AM