<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>

<!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>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:productConnectionString2 %>" 
            SelectCommand="SELECT [isbn], [picUrl], [title], [details], [price] FROM [books] WHERE ([isbn] = @isbn)">
            <SelectParameters>
                <asp:QueryStringParameter Name="isbn" QueryStringField="isbn" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1" 
            RepeatDirection="Horizontal">
            <ItemTemplate>
                <br />
                <asp:Label ID="picUrlLabel" runat="server" Text='<%# Eval("picUrl") %>' 
                    Visible="False" />
                <asp:Image ID="Image1" runat="server" 
                    ImageUrl='<%# Eval("picUrl", "image\\{0}") %>' />
                <br />
                <asp:Label ID="titleLabel" runat="server" Text='<%# Eval("title") %>' />
                <br />
                <asp:Label ID="detailsLabel" runat="server" Text='<%# Eval("details") %>' />
                <br />
                <asp:Label ID="priceLabel" runat="server" 
                    Text='<%# Eval("price") %>' />
                <br />
                <br />
            </ItemTemplate>
        </asp:DataList>
    
        <br />
        <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/AddToCart.gif" 
            onclick="ImageButton1_Click" />
    
    </div>
    <asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="True" Font-Size="12pt" 
        NavigateUrl="~/Default.aspx">Return to shopping page</asp:HyperLink>
    <p>
        &nbsp;</p>
    </form>
</body>
</html>
