excel.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Excel.aspx.cs" Inherits="_Excel" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<HEAD>
<title>Excel</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</HEAD>
<body >
<form id="Form1" method="post" runat="server">
<TABLE id="Table2" style="Z-INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 0px" height="100%"
cellSpacing="1" cellPadding="1" width="100%" border="0">
<TR>
<TD style="FONT-SIZE: 12px; COLOR: appworkspace" align="center" colSpan="3"><FONT face="宋体"> </FONT>
<TABLE id="Table4" style="FONT-SIZE: 12px" cellSpacing="1" cellPadding="1" width="300"
border="0">
<TR>
<TD style="FONT-WEIGHT: bolder; FONT-SIZE: 12pt" align="center" colSpan="2">
EXCEL导入数据库</TD>
</TR>
<TR>
<TD align="right">位置:</TD>
<TD><INPUT id="file1" style="FONT-SIZE: 12px; HEIGHT: 22px" type="file" runat="server"></TD>
</TR>
<TR>
<TD style="height: 26px"></TD>
<TD align="center" style="height: 26px"><asp:button id="Button2" runat="server" Text="上 传" BorderStyle="None" OnClick="Button2_Click"></asp:button></TD>
</TR>
<TR>
<TD style="COLOR: gray; height: 18px;" align="right" colSpan="2">
>>Excel表名默认为Sheet1</TD>
</TR>
<tr>
<td align="right" colspan="2" style="color: gray; height: 18px">
<asp:Label ID="lblMessage" runat="server" Text="Label"></asp:Label></td>
</tr>
</TABLE>
</TD>
</TR>
</TABLE>
</form>
</body>
</HTML>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<HEAD>
<title>Excel</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</HEAD>
<body >
<form id="Form1" method="post" runat="server">
<TABLE id="Table2" style="Z-INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 0px" height="100%"
cellSpacing="1" cellPadding="1" width="100%" border="0">
<TR>
<TD style="FONT-SIZE: 12px; COLOR: appworkspace" align="center" colSpan="3"><FONT face="宋体"> </FONT>
<TABLE id="Table4" style="FONT-SIZE: 12px" cellSpacing="1" cellPadding="1" width="300"
border="0">
<TR>
<TD style="FONT-WEIGHT: bolder; FONT-SIZE: 12pt" align="center" colSpan="2">
EXCEL导入数据库</TD>
</TR>
<TR>
<TD align="right">位置:</TD>
<TD><INPUT id="file1" style="FONT-SIZE: 12px; HEIGHT: 22px" type="file" runat="server"></TD>
</TR>
<TR>
<TD style="height: 26px"></TD>
<TD align="center" style="height: 26px"><asp:button id="Button2" runat="server" Text="上 传" BorderStyle="None" OnClick="Button2_Click"></asp:button></TD>
</TR>
<TR>
<TD style="COLOR: gray; height: 18px;" align="right" colSpan="2">
>>Excel表名默认为Sheet1</TD>
</TR>
<tr>
<td align="right" colspan="2" style="color: gray; height: 18px">
<asp:Label ID="lblMessage" runat="server" Text="Label"></asp:Label></td>
</tr>
</TABLE>
</TD>
</TR>
</TABLE>
</form>
</body>
</HTML>
excel.aspx.cs






































































































数据库







Excel


