// ASPX FILE
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="WebPortal.Upload" %>
<HTML>
<head>
<title>多文件上传</title>
<script language="JavaScript" type="text/javascript">
function addFile()
{
var str = '<INPUT type="file" size="50" NAME="File">'
document.getElementById('MyFile').insertAdjacentHTML("beforeEnd",str)
}
</script>
</head>
<body>
<form id="form1" method="post" runat="server" enctype="multipart/form-data">
<div align="center">
<h3>多文件上传</h3>
<p id="MyFile"><input type="file" size="50" name="File" /></p>
<p>
<input type="button" value="增加(Add)" οnclick="addFile()"/>
<input οnclick="this.form.reset()" type="button" value="重置(ReSet)" />
<asp:Button Runat="server" Text="开始上传" ID="UploadButton"></asp:Button>
</p>
<p>
<asp:Label id="strStatus" runat="server" Font-Names="宋体" Font-Bold="True" Font-Size="9pt"
Width="500px" BorderStyle="None" BorderColor="White"></asp:Label>
</p>
</div>
</form>
</body>
</HTML>
//.CS FILE