default.aspx

来自「这是asp.net^和Visual C++Sharp编写的串并口通讯的书籍 源代」· ASPX 代码 · 共 50 行

ASPX
50
字号
<%@ 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 align="center" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td style="font-weight: bold; font-size: 14pt; text-align: center; height: 37px;">
                    员工出生月份统计分析</td>
            </tr>
             <tr>
                <td style="font-size: 9pt; vertical-align: top; text-align: center">
                    表头依据字段:<asp:DropDownList ID="DropDownList1" runat="server">
                        <asp:ListItem>员工生日</asp:ListItem>
                        <asp:ListItem>所在部门</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;&nbsp; 分组依据字段:<asp:DropDownList ID="DropDownList2" runat="server">
                        <asp:ListItem>所在部门</asp:ListItem>
                        <asp:ListItem>员工生日</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;&nbsp;
                    <asp:Button ID="Button1" runat="server" Text="确定" OnClick="Button1_Click" /></td>
            </tr>
            <tr>
                <td style="vertical-align: top; text-align: center;">
                    <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" AllowPaging="True" Font-Size="9pt" OnPageIndexChanging="GridView1_PageIndexChanging">
                        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#E3EAEB" />
                        <EditRowStyle BackColor="#7C6F57" />
                        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                        <PagerStyle BackColor="#1C5E55" ForeColor="White" HorizontalAlign="Right" />
                        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    
    </div>
        <br />
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?