前端代码:
<td class="auto-style74" style="text-align:right">
<asp:FileUpload ID="FileUpload" runat="server" />
<asp:Label ID="notice" runat="server" ForeColor="Red" Text=""></asp:Label>
</td>
<td class="auto-style39" style="text-align:right">
<asp:Button ID="Button4" runat="server" Text="批量入库" Height="35px" style="margin-left: 0px" Width="92px" OnClick="Button4_Click" BackColor="#9999FF" />
</td>
后端实现代码:
提前安装好OLEDB数据库驱动才能用
标签:ASP,OLEDB,代码,EXCEL,导入,NET From: https://blog.51cto.com/u_16322118/8615315