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

<!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 style="width: 391px">
    
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:productConnectionString %>" 
            SelectCommand="SELECT * FROM [books]"></asp:SqlDataSource>
        <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1" 
            Height="229px" RepeatColumns="4" RepeatDirection="Horizontal" 
            Width="354px">
            <ItemTemplate>
                <asp:ImageButton ID="ImageButton1" runat="server" 
                    ImageUrl='<%# Eval("picUrl", "image\\{0}") %>' 
                    PostBackUrl='<%# Eval("isbn",  "Default2.aspx?isbn={0}") %>' />
                <br />
                <asp:Label ID="titleLabel" runat="server" Text='<%# Eval("title") %>' />
                <br />
                <asp:Label ID="priceLabel" runat="server" 
                    Text='<%# Eval("price", "{0:##0.00}") %>' />
                <br />
                <br />
            </ItemTemplate>
        </asp:DataList>
    
    </div>
    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/shoppingpage.aspx">View Shopping Cart </asp:HyperLink>
    </form>
</body>
</html>
