<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="demo.aspx.cs" Inherits="WEB.demo" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>ZSMusic Demo</title>
    <style type="text/css">
        .auto-style1 {
            width: 51%;
            height: 420px;
        }

        .auto-style2 {
            height: 57px;
        }

        .auto-style3 {
        }

        .auto-style4 {
            width: 100px;
            height: 30px;
        }

        .auto-style5 {
            height: 30px;
        }

        .auto-style6 {
            height: 30px;
            width: 315px;
        }

        .auto-style7 {
            width: 315px;
        }

        .auto-style8 {
            height: 48px;
        }

        .auto-style9 {
            height: 48px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>

            <table class="auto-style1">
                <tr>
                    <td class="auto-style4">
                        <asp:DropDownList ID="cboSource" runat="server">
                        </asp:DropDownList>
                    </td>
                    <td class="auto-style6">
                        <asp:TextBox ID="txtWord" runat="server" BorderStyle="Solid" BorderWidth="1px" Width="294px"></asp:TextBox>
                    </td>
                    <td class="auto-style5">
                        <asp:Button ID="btnSearch" runat="server" BackColor="#0033CC" BorderStyle="None" ForeColor="#CCFFFF" Text="搜索" Width="95px" OnClick="btnSearch_Click" />
                    </td>
                </tr>
                <tr>
                    <td class="auto-style2" colspan="3">
                        <asp:GridView ID="dgvMusic" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" Height="240px" Width="518px" AutoGenerateColumns="False" OnDataBinding="dgvMusic_DataBinding" OnRowCommand="dgvMusic_RowCommand" ShowHeader="False">
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <%# "曲名:"+ Eval("Name") %>
                                        <br />
                                        <%# "艺术家:"+Eval("Artist") %>
                                        <br />
                                        <%# "专辑:"+Eval("Album") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:ButtonField CommandName="play" Text="播放" />
                                <asp:ButtonField CommandName="detail" Text="详情" />
                            </Columns>
                            <AlternatingRowStyle BackColor="White" />
                            <EditRowStyle BackColor="#2461BF" />
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                            <RowStyle BackColor="#EFF3FB" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                            <SortedAscendingCellStyle BackColor="#F5F7FB" />
                            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                            <SortedDescendingCellStyle BackColor="#E9EBEF" />
                            <SortedDescendingHeaderStyle BackColor="#4870BE" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style9" colspan="3">
                        <asp:Button ID="btnUp" runat="server" BackColor="#0033CC" BorderStyle="None" ForeColor="#CCFFFF" Text="上一页" Enabled="False" OnClick="btnUp_Click" />
                        &nbsp;<asp:Button ID="btnDown" runat="server" BackColor="#0033CC" BorderStyle="None" ForeColor="#CCFFFF" Text="下一页" OnClick="btnDown_Click" />
                        &nbsp;每页显示数量:<asp:TextBox ID="txtNum" runat="server" BorderStyle="Solid" BorderWidth="1px" Height="16px" TextMode="Number" Width="77px">30</asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3">&nbsp;</td>
                    <td class="auto-style7">&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td class="auto-style3">&nbsp;</td>
                    <td class="auto-style7">&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
            </table>

        </div>
    </form>
</body>
</html>
