<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AlbumsCached.aspx.cs" Inherits="MyTunes.Cached.AlbumsCached" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <asp:Label ID="lblDebugCached" runat="server" 
            Text="Cached Albums Dataset - View Includes Artist Expression Column" 
            Font-Bold="True" ForeColor="Red"></asp:Label>
    </div>
    <div class="quickLinks">
        <asp:Label ID="lblQuickLinks" runat="server" Text="Label"></asp:Label>
    </div>
    <div class="pageSelect">
    <table style="width: 100%;">
    <tr>
    <td>
        <asp:Label ID="lblAlbumSearchCached" runat="server" Text="Album Quick Search:"></asp:Label>
        <asp:TextBox ID="txtAlbumFilterCached" runat="server" AutoPostBack="True" 
            ontextchanged="txtAlbumFilterCached_TextChanged"></asp:TextBox>
        <asp:ImageButton ID="btFilterGoCached" runat="server" 
            ImageUrl="~/App_Themes/Default/Images/rarrow.gif" 
            onclick="btFilterGoCached_Click" />
    </td>
    <td style="text-align: center">
        <asp:Label ID="lblPageInfoCached" runat="server" style="font-style: italic"></asp:Label>
    </td>
    <td style="text-align: right">
        <asp:Label ID="lblPageSelectCached" runat="server" Text="Jump to:"></asp:Label>
        <asp:DropDownList ID="lstPageSelectCached" runat="server" 
            onselectedindexchanged="lstPageSelectCached_SelectedIndexChanged" 
            AutoPostBack="True">
        </asp:DropDownList>
    </td>
    </tr>
    </table>
    </div>
    <asp:GridView ID="AlbumsCachedGridView" runat="server" AllowPaging="True" 
        AllowSorting="True" DataSourceID="AlbumCachedDataSource" PageSize="25" 
        AutoGenerateColumns="False" DataKeyNames="album_id" 
    ondatabound="AlbumsCachedGridView_DataBound">
        <Columns>
            <asp:BoundField DataField="album_id" HeaderText="album_id" ReadOnly="True" 
                SortExpression="album_id" Visible="False" />
            <asp:BoundField DataField="artist_id" HeaderText="artist_id" 
                SortExpression="artist_id" Visible="False" />
            <asp:BoundField DataField="Artist" HeaderText="Artist" ReadOnly="True" 
                SortExpression="Artist" />
            <asp:BoundField DataField="album" HeaderText="Album" SortExpression="album" />
            <asp:BoundField DataField="NumSongs" HeaderText="Number of Songs" 
                ReadOnly="True" SortExpression="NumSongs">
            <ItemStyle HorizontalAlign="Right" />
            </asp:BoundField>
        </Columns>
        <PagerSettings Mode="NumericFirstLast" PageButtonCount="25" 
            Position="TopAndBottom" />
    </asp:GridView>
    <asp:ObjectDataSource ID="AlbumCachedDataSource" runat="server" 
        OldValuesParameterFormatString="original_{0}" SelectMethod="GetAlbums" 
        TypeName="MyTunes.Common.Cached.AlbumCachedBLL"></asp:ObjectDataSource>
</asp:Content>
