<%@ 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>聚合函数在Linq查询中的应用</title>
    <style type="text/css">

        .style1
        {
            font-family: 华文新魏;
            font-size: xx-large;
            color: #008080;
            font-weight: bold;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table align="center" style="width: 505px;">
            <tr>
                <td align="center" class="style1">
                    聚合函数在Linq查询中的应用</td>
            </tr>
            <tr>
                <td align="center">
                    <br />
                    <asp:Button ID="Button1" runat="server" Height="37px" onclick="Button1_Click" 
                        Text="聚合查询 " Width="90px" />
                    <br />
                </td>
            </tr>
            <tr>
                <td align="center">
                    <br />
                    <asp:GridView ID="GridView1" runat="server" BackColor="LightGoldenrodYellow" 
                        BorderColor="Tan" BorderWidth="1px" CellPadding="2" ForeColor="Black" 
                        GridLines="None" Width="503px">
                        <FooterStyle BackColor="Tan" />
                        <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
                            HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                        <HeaderStyle BackColor="Tan" Font-Bold="True" />
                        <AlternatingRowStyle BackColor="PaleGoldenrod" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td align="center">
                    <br />
                    <asp:Panel ID="Panel1" runat="server" BackColor="#FFCC66" Height="80px" 
                        Visible="False" Width="500px">
                        <asp:Label ID="Label1" runat="server" Text="仓库信息统计" Font-Bold="True" 
                            Font-Size="X-Large" ForeColor="#CC3300"></asp:Label>
                        <br />
                        <asp:Label ID="Label2" runat="server" Text="面积的最大值"></asp:Label>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Label ID="Label3" runat="server" Text="面积的最小值"></asp:Label>
                        &nbsp;&nbsp;&nbsp;
                        <asp:Label ID="Label4" runat="server" Text="面积的平均值"></asp:Label>
                        &nbsp;&nbsp;&nbsp;
                        <asp:Label ID="Label5" runat="server" Text="面积的总和"></asp:Label>
                        &nbsp; &nbsp;
                        <asp:Label ID="Label6" runat="server" Text="记录个数"></asp:Label>
                        <br />
                        <asp:TextBox ID="TextBox1" runat="server" Width="69px"></asp:TextBox>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="TextBox2" runat="server" Width="59px"></asp:TextBox>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="TextBox3" runat="server" Width="62px"></asp:TextBox>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="TextBox4" runat="server" Width="58px"></asp:TextBox>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="TextBox5" runat="server" Width="54px"></asp:TextBox>
                    </asp:Panel>
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
