Just a little more information. While you can add FTPConnection to the Toolbox and drop one onto a Windows Form, you cannot drop an FTPConnection onto a Web Form. However, you can use FTPConnection in Web Form code. To do this you need to import EnterpriseDT.Net.Ftp at the top of you source-code and then create an instance of it manually in code. For example:
Imports EnterpriseDT.Net.Ftp
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim ftp As New SecureFTPConnection
Try
ftp.ServerAddress = ServerAddress.Text
ftp.UserName = UserName.Text
ftp.Password = Password.Text
ftp.ServerDirectory = Directory.Text
ftp.Connect()
... DO FTP STUFF HERE ...
Catch ex As Exception
ErrorMessage.Text = ex.Message
Finally
ftp.Close()
End Try
End Sub
End Class
As I said, in Windows Forms you can actually drop the FTPConnection onto the form and therefore set the properties in the Properties View, so that simplifies the code a bit.
- Hans (EnterpriseDT)