Page view counter

FTP Transfer in ASP.NET?

Last post 05-25-2009 8:00 AM by qwe123kids. 9 replies.

Sort Posts:

  • FTP Transfer in ASP.NET?

    11-07-2003, 6:37 AM
    • Loading...
    • bradyjp_1974
    • Joined on 10-29-2003, 10:41 AM
    • Posts 45
    • Points 225
    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 advance
  • Re: FTP Transfer in ASP.NET?

    11-07-2003, 6:57 AM
    • Loading...
    • SomeNewKid
    • Joined on 08-10-2003, 12:16 AM
    • Western Australia
    • Posts 8,027
    • Points 45,844
    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.

    Alister
  • Re: FTP Transfer in ASP.NET?

    11-07-2003, 7:04 AM
    • Loading...
    • SreedharK
    • Joined on 07-10-2003, 6:58 AM
    • Virginia
    • Posts 3,119
    • Points 18,561
    • TrustedFriends-MVPs
    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!
    Sreedhar
    http://www.w3coder.org
    weblog http://weblogs.asp.net/skoganti
  • Re: FTP Transfer in ASP.NET?

    11-07-2003, 7:27 AM
    • Loading...
    • bradyjp_1974
    • Joined on 10-29-2003, 10:41 AM
    • Posts 45
    • Points 225
    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.
  • Re: FTP Transfer in ASP.NET?

    11-07-2003, 8:29 AM
    • Loading...
    • bradyjp_1974
    • Joined on 10-29-2003, 10:41 AM
    • Posts 45
    • Points 225

    The Rebex component was good. I was able to produce the required functionality in 7 lines of code.

    Thanks!!!
  • Re: FTP Transfer in ASP.NET?

    04-11-2006, 8:06 AM
    • Loading...
    • naceau
    • Joined on 04-11-2006, 9:46 AM
    • UK
    • Posts 3
    • Points 15

    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

    Paseosoft product architect
  • Re: FTP Transfer in ASP.NET?

    04-11-2006, 8:56 AM
    • Loading...
    • MorningZ
    • Joined on 07-22-2002, 2:39 PM
    • Fort Lauderdale, FL
    • Posts 1,815
    • Points 8,834

    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)

    "If you make it idiot proof, they'll build a better idiot"
  • Re: FTP Transfer in ASP.NET?

    10-29-2008, 9:53 AM
    • Loading...
    • obinna123
    • Joined on 10-18-2004, 10:01 PM
    • London
    • Posts 213
    • Points 983
    Hi MorningZ, can I have the code and the dll please, I am using .net 2.0
  • Re: FTP Transfer in ASP.NET?

    05-25-2009, 7:50 AM
    • Loading...
    • atomic_thang
    • Joined on 04-26-2005, 5:35 AM
    • Posts 45
    • Points 321
    Check out the following link if you need a true AJAX-enabled ASP.NET FTP application sample: http://www.safabyte.com/ftp.net.aspx. For SFTP please check out: http://www.safabyte.com/sftp.net.aspx
    John Borders
    MCSD,MCDBA,MCTS,ITProject+,PMP
  • Re: FTP Transfer in ASP.NET?

    05-25-2009, 8:00 AM
    • Loading...
    • qwe123kids
    • Joined on 03-27-2008, 5:49 AM
    • Posts 1,808
    • Points 9,977
    Thanks
    Avinash Tiwari

    Remember to click “Mark as Answer” on the post, if it helps you.

    MY Blog
Page 1 of 1 (10 items)