日期:2014-05-18  浏览次数:20372 次

=========如何同时上传4张以上图片,或者是n张!!谢谢
=========如何同时上传4张以上图片,或者是n张!!谢谢

------解决方案--------------------
<script language= "JavaScript ">
function addFileControl()
{
var str = ' <INPUT type= "file " NAME= "File "> '
document.getElementById( 'FileCollection ').insertAdjacentHTML( "beforeEnd ",str)
}
</script>
</HEAD>
<body MS_POSITIONING= "GridLayout ">
<form id= "upMoreFile " method= "post " encType= "multipart/form-data " runat= "server ">
<asp:label id= "Title " Runat= "server "> </asp:label>
<P id= "FileCollection "> <INPUT type= "file " name= "File ">
</P>
<P> <input onclick= "addFileControl() " type= "button " value= "增加(File) ">
<asp:button id= "Upload " Runat= "server " Text= "上传 " Width= "56px "> </asp:button> <input style= "WIDTH: 56px; HEIGHT: 24px " onclick= "this.form.reset() " type= "button " value= "重置 ">
</P>
<P align= "center "> <asp:label id= "strStatus " runat= "server " BorderColor= "White " BorderStyle= "None " Width= "500px "
Font-Size= "9pt " Font-Bold= "True " Font-Names= "宋体 "> </asp:label> </P>
</form>
</body>
</HTML>