📄 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 runat="server">
<title>动态生成透视表</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table style="width: 373px; height: 239px" align="center" border="1" cellpadding="1" cellspacing="1" bgcolor="black" bordercolor="#ffffff">
<tr>
<td bgcolor="#ffffff" colspan="2" style="font-weight: bold; font-size: 15pt;
text-align: center; color: #ffffff; background-color: #1c5e55;">
选择生成透视表条件</td>
</tr>
<tr>
<td style="width: 150px" bgcolor="#ffffff">
页:<asp:DropDownList ID="DropDownList5" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList5_SelectedIndexChanged">
</asp:DropDownList></td>
<td style="width: 228px" bgcolor="#ffffff">
列:<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
</asp:DropDownList></td>
</tr>
<tr>
<td style="width: 150px; height: 142px" bgcolor="#ffffff">
行:<asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged">
</asp:DropDownList></td>
<td style="width: 228px; height: 142px; vertical-align: middle; text-align: center;" bgcolor="#ffffff">
数据:<asp:DropDownList ID="DropDownList3" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList3_SelectedIndexChanged">
</asp:DropDownList></td>
</tr>
<tr>
<td colspan="2" style="text-align: right" bgcolor="#ffffff">
统计方式:<asp:DropDownList ID="DropDownList4" runat="server">
<asp:ListItem>sum</asp:ListItem>
<asp:ListItem>avg</asp:ListItem>
<asp:ListItem>count</asp:ListItem>
<asp:ListItem>max</asp:ListItem>
<asp:ListItem>min</asp:ListItem>
</asp:DropDownList>
<asp:Button ID="Button1" runat="server" Text="生成透视表" OnClick="Button1_Click" /></td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -