<%@ Page Language="c#" masterpagefile="~/masterpage.master" Inherits="Microsoft.Samples.SqlServer.ProductsList" CodeFile="ProductsList.aspx.cs" %>
<%@ OutputCache Duration="6000" VaryByParam="SubcategoryID" VaryByCustom="Culture"%>

<asp:content id="Content1" contentplaceholderid="ContentPlaceHolder1" runat="server">
<!-- =====================================================================

  File:      ProductsList.aspx for Adventure Works Cycles Storefront Sample
  Summary:   Displays a brief summary of all products of the selected subcategory
  Date:	     June 16, 2003

=====================================================================

  This file is part of the Microsoft SQL Server Code Samples.
  Copyright (C) Microsoft Corporation.  All rights reserved.

This source code is intended only as a supplement to Microsoft
Development Tools and/or on-line documentation.  See these other
materials for detailed information regarding Microsoft code samples.

THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.

======================================================= -->

<table height="100%" align="left" cellspacing="0" cellpadding="0" width="100%" border="0">
	<tr valign="top">
		<td nowrap>
			<br>
			<asp:DataList id="MyList" RepeatColumns="2" runat="server">
				<ItemTemplate>
					<table border="0" width="300">
						<tr>
							<td width="25">
								&nbsp
							</td>
							<td width="100" valign="middle" align="right">
								<a href='ProductDetails.aspx?productID=<%# DataBinder.Eval(Container.DataItem, "ProductID") %>&expansion=<%# Request.Params["expansion"] %>&selection=<%# Request.Params["selection"] %>'>
									<img src='ProductImages/thumbs/<%# DataBinder.Eval(Container.DataItem, "ThumbnailPhotoFileName") %>' width="80" height="49" border="0">
								</a>
							</td>
							<td width="200" valign="middle">
								<a href='ProductDetails.aspx?productID=<%# DataBinder.Eval(Container.DataItem, "ProductID") %>&expansion=<%# Request.Params["expansion"] %>&selection=<%# Request.Params["selection"] %>'>
									<span class="ProductListHead">
										<%# DataBinder.Eval(Container.DataItem, "Name") %>
									</span>
									<br>
								</a>
								<span class="ProductListItem">
									<b>Special Price: </b>
									<%# DataBinder.Eval(Container.DataItem, "ListPrice", "{0:c}") %>
								</span>
								<br>
								<a href='AddToCart.aspx?productID=<%# DataBinder.Eval(Container.DataItem, "ProductID") %>'>
									<span class="ProductListItem">
										<font color="#9D0000"><b>Add To Cart<b></font></span>
								</a>
							</td>
						</tr>
					</table>
				</ItemTemplate>
			</asp:DataList>
		</td>
	</tr>
</table>

</asp:content>