<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="displayphoto.aspx.cs" Inherits="displayphoto" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    &nbsp;<asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="True" Font-Names="Verdana" Font-Size="14px">Back to the album</asp:HyperLink>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="SELECT [Name], [Description], [DateCreated], [PhotoID], [AlbumID] FROM [Photos] WHERE ([PhotoID] = @PhotoID)">
        <SelectParameters>
            <asp:QueryStringParameter Name="PhotoID" QueryStringField="photoid" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:FormView ID="FormView1" runat="server" DataKeyNames="PhotoID" DataSourceID="SqlDataSource1"
        OnDataBound="FormView1_DataBound" OnItemCreated="FormView1_ItemCreated" Width="100%">
        <ItemTemplate>
            <table style="width: 100%">
                <tr>
                    <td>
                        <asp:Image ID="Image1" runat="server" /></td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label1" runat="server" Font-Bold="True" Text='<%# Eval("Name") %>' Font-Names="Verdana" Font-Size="12px"></asp:Label></td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label2" runat="server" Text='<%# Eval("Description") %>' Font-Names="Verdana" Font-Size="12px"></asp:Label></td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label3" runat="server" Text="Added :" Font-Names="Verdana" Font-Size="12px"></asp:Label>
                        <asp:Label ID="Label4" runat="server" Text='<%# Eval("DateCreated", "{0:g}") %>' Font-Names="Verdana" Font-Size="12px"></asp:Label></td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:FormView>
</asp:Content>

