<%@ 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>
    <style type="text/css">

        .style1
        {
            font-family: 华文新魏;
            font-size: xx-large;
            color: #008000;
            font-weight: bold;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table align="center" style="width: 520px;">
            <tr>
                <td align="center" class="style1">
                    动态排序数据库中的数据</td>
            </tr>
            <tr>
                <td align="center">
                    <br />
                    请选择排序字段：<asp:DropDownList ID="DropDownList1" runat="server" Height="16px" 
                        Width="104px">
                        <asp:ListItem>职工号</asp:ListItem>
                        <asp:ListItem>仓库号</asp:ListItem>
                        <asp:ListItem>姓名</asp:ListItem>
                        <asp:ListItem>性别</asp:ListItem>
                        <asp:ListItem>工资</asp:ListItem>
                    </asp:DropDownList>
&nbsp;
                    <asp:RadioButtonList ID="RadioButtonList1" runat="server">
                        <asp:ListItem Selected="True">升序</asp:ListItem>
                        <asp:ListItem>降序</asp:ListItem>
                    </asp:RadioButtonList>
                    <asp:Button ID="Button1" runat="server" Height="33px" Text="排序查询" 
                        Width="84px" onclick="Button1_Click" />
                    <br />
                    <br />
&nbsp;&nbsp;
                </td>
            </tr>
            <tr>
                <td align="center">
                    <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" 
                        GridLines="None" Height="160px" Width="491px">
                        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                        <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                    <br />
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
