<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Aggregations1.aspx.cs" Inherits="TestGroupingView.TestAggregations" MasterPageFile="~/Site.Master"%>
<%@ Register Assembly="GroupingView" Namespace="UNLV.IAP.WebControls" TagPrefix="cc1" %>

<asp:Content runat="server" ContentPlaceHolderID="Title">
    Aggregations
</asp:Content>

<asp:Content runat="server" ContentPlaceHolderID="ContentPlaceHolder1">

    <div>

        Enter numbers separated with commas:
        <br />
        <asp:TextBox ID="txt1" runat="server" Rows="3" Columns="30" TextMode="MultiLine" />
        <br />
        <asp:Button ID="btn1" runat="server" Text="Compute Aggregations" 
            onclick="btn1_Click" />
        <br />
        <br />
        
        <table>
            <tr>
                <td>Count:</td>
                <td><cc1:Aggregation runat="server" Function="Count" /></td>
            </tr>
            <tr>
                <td>Sum:</td>
                <td><cc1:Aggregation runat="server" Function="Sum" /></td>
            </tr>
            <tr>
                <td>Avg:</td>
                <td><cc1:Aggregation runat="server" Function="Avg" /></td>
            </tr>
            <tr>
                <td>Median:</td>
                <td><cc1:Aggregation runat="server" Function="Median" /></td>
            </tr>
            <tr>
                <td>Min:</td>
                <td><cc1:Aggregation runat="server" Function="Min" /></td>
            </tr>
            <tr>
                <td>Max:</td>
                <td><cc1:Aggregation runat="server" Function="Max" /></td>
            </tr>
            <tr>
                <td>First:</td>
                <td><cc1:Aggregation runat="server" Function="First" /></td>
            </tr>
            <tr>
                <td>Last:</td>
                <td><cc1:Aggregation runat="server" Function="Last" /></td>
            </tr>
            <tr>
                <td>Var:</td>
                <td><cc1:Aggregation runat="server" Function="Var" /></td>
            </tr>
            <tr>
                <td>StDev:</td>
                <td><cc1:Aggregation runat="server" Function="StDev" /></td>
            </tr>
        </table>
    
    </div>
</asp:Content>

<asp:Content runat="server" ContentPlaceHolderID="Description">
This example demonstrates the <code>Aggregation</code> control and each of its
functions.
</asp:Content>