제목 : 파일업로드 연습 : UploadTest.aspx
<%@ Page language="c#" Codebehind="UploadTest.aspx.cs" AutoEventWireup="false" Inherits="Upload.Upload.UploadTest" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>UploadTest</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="FlowLayout">
<form id="Form1" method="post" runat="server" enctype="multipart/form-data">
<P><FONT face="굴림">파일 : <INPUT id="fileUpload" type="file" name="File1" runat="server"></FONT></P>
<FONT face="굴림">
<P>
<asp:Button id="btnUpload" runat="server" Text="업로드하기"></asp:Button></P>
<P>
<asp:Label id="lblDisplay" runat="server"></asp:Label></P>
<HR width="100%" SIZE="1">
</FONT>
</form>
<P><FONT face="굴림">1. HTML - 파일 필드 컨트롤 등록</FONT></P>
<P><FONT face="굴림">2. 서버 컨트롤로 실행</FONT></P>
<P><FONT face="굴림">3. id속성 부여 : fileUpload</FONT></P>
<P><FONT face="굴림">4. form태그에 enctype="multipart/form-data"</FONT></P>
</body>
</HTML>