<%@ Page Language="c#" masterpagefile="~/masterpage.master" Inherits="Microsoft.Samples.SqlServer.SearchResults" CodeFile="SearchResults.aspx.cs" %>

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

  File:      SearchResults.aspx for Adventure Works Cycles Storefront Sample
  Summary:   Displays a brief summary of the results of a product search (see _Header.ascx)
  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") %>'>
									<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")%>'>
									<span class="ProductListHead">
										<%# DataBinder.Eval(Container.DataItem, "Name")%>
									</span>
									<br>
								</a>
								<span class="ProductListItem">
									<b>Special Price: </b>
									<%# DataBinder.Eval(Container.DataItem, "ListPrice")%>
								</span>
								<br>
								<a href='AddToCart.aspx?productID=<%# DataBinder.Eval(Container.DataItem, "ProductID")%>'>
									<font color="#9D0000"><b>Add To Cart</b></font></a>
							</td>
						</tr>
					</table>
				</ItemTemplate>
			</asp:DataList>
			<img height="1" width="30" src="Images/1x1.gif">
			<asp:Label id="ErrorMsg" cssclass="ErrorText" runat="server" />
		</td>
	</tr>
</table>

</asp:content>