日期:2014-05-17  浏览次数:20883 次

asp.net点击增加多行文件上传 删除

前台页面:

<div style="display:none">
<asp:NumberTextBox runat="server" ID="aaas"></asp:NumberTextBox></div>
<h2 class="mt10">促品/宣传物料信息</h2>

<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
?<table border="0" cellspacing="0" cellpadding="0"? class="info_tab1 mt10" width="100%">
????? <tr>
??????? <%--<th? style="width:5%">序号</th>
??????? <th? width="12%">礼品名称</th>
??????? <th width="10%">生产量</th>
??????? <th width="10%">生产成本(元)</th>
??????? <th width="10%">生产厂家</th>
??????? <th width="10%">备注</th>
??????? <th width="10%">使用方法</th>
??????? <th width="10%">详细说明</th>
??????? <th width="19%">物料图片</th>
??????? <th >操作</th>--%>
??????? <th? >序号</th>
??????? <th? >礼品名称</th>
??????? <th >生产量</th>
??????? <th >生产成本(元)</th>
??????? <th >生产厂家</th>
??????? <th >备注</th>
??????? <th >使用方法</th>
??????? <th >详细说明</th>
??????? <th >物料图片</th>
??????? <th >操作</th>
????? </tr>
</HeaderTemplate>
????? <ItemTemplate>
????? <tr >
????? <td >
??????? <%#Container.ItemIndex + 1%>
??????? </td>
??????? <td ><span class="redf">
???????? <asp:HiddenField ID="materialResourceID" runat="server" Value='<%#DataBinder.eval_r(Container.DataItem, "resource_id")%>' />
??????? <asp:TextBox ID="giftname"? size="13" MaxLength="40"? runat="server" Text='<%#DataBinder.eval_r(Container.DataItem, "present_name")%>'></asp:TextBox>
??????? <span class="title_red">*</span>
???????? </span>
???????? </td>
??????? <td >
?????? <asp:NumberTextBox ID="producenum" size="13" MaxLength="10"? runat="server" Model="Decimal" NumberOfDecimals="2" Text='<%#DataBinder.eval_r(Container.DataItem, "produce_count")%>'></asp:NumberTextBox>
??????? </td>
??????? <td ><span class="redf">
???????? <asp:NumberTextBox ID="producecost" size="13" MaxLength="10"? runat="server" Model="Decimal" NumberOfDecimals="2" Text='<%#DataBinder.eval_r(Container.DataItem, "produce_price")%>'></asp:NumberTextBox>
??????? </span></td>
??????? <td ><span class="redf">
????????? <asp:TextBox ID="producecompany" size="13" MaxLength="40"? runat="server" Text='<%#DataBinder.eval_r(Container.DataItem, "produce_vender")%>'></asp:TextBox>
??????? </span></td>
??????? <td ><span class="redf">
????????? <asp:TextBox ID="giftremark" size="13" MaxLength="90"? runat="server" Width="108px" Text='<%#DataBinder.eval_r(Container.DataItem, "remarks")%>'></asp:TextBox>
??????? </span></td>
??????? <td ><span class="redf">
????????? <asp:TextBox ID="usemethod" size="13" MaxLength="90"? runat="server" Width="117px" Text='<%#DataBinder.eval_r(Container.DataItem, "use_type")%>'></asp:TextBox>
??????? </span></td>
??????? <td >
??????? <span class="redf">
???????? <asp:TextBox ID="detailinfo" size="13" MaxLength="90"? runat="server" Width="105px" Text='<%#DataBinder.eval_r(Container.DataItem, "instraction")%>'></asp:TextBox>
??????? </span>
??????? </td>
???????? <td>
???????
?????? <asp:HiddenField? ID="PicFilePathLink" runat="server"? Value='<%#DataBinder.eval_r(Container.DataItem, "PicFilePathLink")%>' />
?????? <asp:UpdatePanel ID="UpdatePanel4" runat="server" RenderMode="Block" UpdateMode="Conditional">
??????? <Triggers&g