ftp - upload image files
-
Hi... I am using asp with c#. I am doing an application for upload image files via ftp. how to i do this? Any help will be appriciated... thanks...
G.Paulraj
If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles] [My Website]
-
Hi... I am using asp with c#. I am doing an application for upload image files via ftp. how to i do this? Any help will be appriciated... thanks...
G.Paulraj
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm6.aspx.vb" Inherits="MyData.WebForm6"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <title>WebForm6</title> <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1"> <meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1"> <meta name="vs_defaultClientScript" content="JavaScript"> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> </HEAD> <body MS_POSITIONING="GridLayout"> <ASP:panel id="FileUploadForm" visible="true" runat="server"> <FORM id="Form2" method="post" encType="multipart/from-data" runat="server"> <P><INPUT id="loFile" type="file" name="loFile" runat="server"></P> <P> <asp:TextBox id="dir" runat="server"></asp:TextBox><BR <asp:Button id="Button1" runat="server" Text="Button"></asp:Button><BR> </P> </FORM> </ASP:panel> <ASP:panel id="AnswerMsg" visible="false" runat="server"> <ASP:label id="FileName" runat="server"></ASP:label> <BR> <ASP:label id="FileLength" runat="server"></ASP:label> <BR> <ASP:label id="FileType" runat="server"></ASP:label> <BR> </ASP:panel> </body> </HTML> .vb Imports System.IO Imports System.Data Public Class WebForm6 Inherits System.Web.UI.Page #Region " <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent() End Sub Protected WithEvents FileUploadForm As System.Web.UI.WebControls.Panel Protected WithEvents FileName As System.Web.UI.WebControls.Label Protected WithEvents FileLength As System.Web.UI.WebControls.Label Protected WithEvents FileType As System.Web.UI.WebControls.Label Protected WithEvents AnswerMsg As System.Web.UI.WebControls.Panel Protected WithEvents loFile As System.Web.UI.HtmlControls.HtmlInputFile Protected WithEvents Button1 As System.Web.UI.WebControls.Button Protected WithEvents dir As System.Web.UI.WebControls.TextBox Private designerPlaceholderDeclaration As System.Object Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init InitializeComponent() End Sub #End Region Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Priva
-
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm6.aspx.vb" Inherits="MyData.WebForm6"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <title>WebForm6</title> <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1"> <meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1"> <meta name="vs_defaultClientScript" content="JavaScript"> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> </HEAD> <body MS_POSITIONING="GridLayout"> <ASP:panel id="FileUploadForm" visible="true" runat="server"> <FORM id="Form2" method="post" encType="multipart/from-data" runat="server"> <P><INPUT id="loFile" type="file" name="loFile" runat="server"></P> <P> <asp:TextBox id="dir" runat="server"></asp:TextBox><BR <asp:Button id="Button1" runat="server" Text="Button"></asp:Button><BR> </P> </FORM> </ASP:panel> <ASP:panel id="AnswerMsg" visible="false" runat="server"> <ASP:label id="FileName" runat="server"></ASP:label> <BR> <ASP:label id="FileLength" runat="server"></ASP:label> <BR> <ASP:label id="FileType" runat="server"></ASP:label> <BR> </ASP:panel> </body> </HTML> .vb Imports System.IO Imports System.Data Public Class WebForm6 Inherits System.Web.UI.Page #Region " <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent() End Sub Protected WithEvents FileUploadForm As System.Web.UI.WebControls.Panel Protected WithEvents FileName As System.Web.UI.WebControls.Label Protected WithEvents FileLength As System.Web.UI.WebControls.Label Protected WithEvents FileType As System.Web.UI.WebControls.Label Protected WithEvents AnswerMsg As System.Web.UI.WebControls.Panel Protected WithEvents loFile As System.Web.UI.HtmlControls.HtmlInputFile Protected WithEvents Button1 As System.Web.UI.WebControls.Button Protected WithEvents dir As System.Web.UI.WebControls.TextBox Private designerPlaceholderDeclaration As System.Object Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init InitializeComponent() End Sub #End Region Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Priva