📄 default.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!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 id="Head1" runat="server">
<title>Excel数据写入数据库中</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table align="center" cellpadding="0" cellspacing="0" border="1" bordercolor="honeydew">
<tr>
<td style="font-size: 9pt;color: #ff0000; background-color: #ff9933;
text-align: center; height: 16px;">
</td>
<td colspan="2" style="font-size: 9pt; color: #ffffff; height: 16px; background-color: #ff9933;
text-align: center">
将Excel数据写入数据库中</td>
</tr>
<tr>
<td style="background-color: #ffffcc; text-align: center">
</td>
<td style="background-color: #ffffcc; text-align: center">
<iframe id="leftFrame" scrolling="yes" src="usersdb.xls" style="width: 480px; height: 280px"></iframe>
</td>
<td style="background-color: #ffffcc; text-align: center;">
<asp:GridView ID="GridView1" runat="server" CellPadding="4" Font-Size="9pt" ForeColor="#333333"
GridLines="None">
<FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
<PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
</td>
</tr>
<tr>
<td style=" background-color: #ff9900; text-align: center; height: 23px;">
</td>
<td style="height: 23px; background-color: #ff9900; text-align: center">
<asp:Button ID="Button1" runat="server" Font-Size="9pt" Text="Excel数据写入数据库中" OnClick="Button1_Click" />
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></td>
<td style="text-align: center; background-color: #ff9900; height: 23px;">
<asp:Button ID="Button2" runat="server" Font-Size="9pt" Text="数据库中显示Excel数据" OnClick="Button2_Click" /></td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -