<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:DataList ID="DataList1" runat="server" DataKeyField="AlbumID" DataSourceID="SqlDataSource1"
        OnItemDataBound="DataList1_ItemDataBound" RepeatColumns="2" RepeatDirection="Horizontal"
        Width="100%">
        <ItemTemplate>
            <table style="width: 100%" cellpadding="5">
                <tr>
                    <td nowrap="nowrap" rowspan="1" valign="top" width="10%">
                        <asp:Image ID="Image1" runat="server" /></td>
                    <td style="height: 21px" valign="top">
                        <asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="True" Font-Size="Larger"
                            NavigateUrl='<%# Eval("AlbumID", "~/displayalbum.aspx?albumid={0}") %>' Text='<%# Eval("Name") %>' Font-Names="Verdana"></asp:HyperLink><br />
                        <asp:Label ID="Label3" runat="server" Text='<%# Eval("Description") %>' Font-Names="Verdana" Font-Size="12px"></asp:Label><br />
                        <asp:Label ID="Label1" runat="server" Font-Size="10px" Text="Added :" Font-Names="Verdana"></asp:Label>
                        <asp:Label ID="Label2" runat="server" Font-Size="10px" Text='<%# Eval("DateCreated", "{0:g}") %>'></asp:Label></td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:DataList>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="SELECT * FROM [Albums] ORDER BY [DateCreated] DESC"></asp:SqlDataSource>
</asp:Content>

