使用FileUpload实现多个文件同时上传的例子,方法很多,这是一个简单一点的方法。下面就是主要的界面,大家可以参考一下。下面我们来解释他的实现方法:
首先我们看一下界面,开始界面上有个Panel1,里面有个FileUpload控件,然后在Panel1外面有个TextBox控件,一个Button按钮,用来实现增加FileUpload控件的,还有一个Button按钮是用来实现上传功能的。看一些界面源文件:
首先我们看一下界面,开始界面上有个Panel1,里面有个FileUpload控件,然后在Panel1外面有个TextBox控件,一个Button按钮,用来实现增加FileUpload控件的,还有一个Button按钮是用来实现上传功能的。看一些界面源文件:
<
asp:Panel ID
=
"
Panel1
"
runat
=
"
server
"
Height
=
"
50px
"
Width
=
"
302px
"
>
< asp:FileUpload ID = " ful " runat = " server " />
< input id = " File1 " runat = " server " type = " file " /></ asp:Panel >
< asp:FileUpload ID = " ful " runat = " server " />
< input id = " File1 " runat = " server " type = " file " /></ asp:Panel >