<%@ Control Language="c#" Inherits="Microsoft.Samples.SqlServer.ReviewListControl" CodeFile="_ReviewList.ascx.cs" %>
<!-- =====================================================================

  File:      _reviewList.ascx for Adventure Works Cycles Storefront Sample
  Summary:   User control which displays the list of reviews for the current product.  Embeds in the product details page.
  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.

======================================================= -->
<%--

    This user control display a list of review for a specific product.

--%>
<br>
<br>
<table cellspacing="0" cellpadding="0" width="100%" border="0">
	<tr>
		<td class="SubContentHead">
			&nbsp;Reviews
			<br>
		</td>
	</tr>
	<tr>
		<td>
			&nbsp;
		</td>
	</tr>
	<tr>
		<td>
			<asp:Hyperlink id="AddReview" runat="server">
				<img align="absbottom" src="images/review_this_product.gif" border="0">
			</asp:Hyperlink>
			<br>
			<br>
		</td>
	</tr>
	<tr>
		<td>
			<asp:DataList ID="MyList" runat="server" width="500" cellpadding="0" cellspacing="0">
				<ItemTemplate>
					<asp:Label CssClass="NormalBold" Text='<%# DataBinder.Eval(Container.DataItem, "ReviewerName") %>' runat="server" />
					<span class="Normal">says... </span><img src='images/ReviewRating<%# DataBinder.Eval(Container.DataItem, "Rating") %>.gif'>
					<br>
					<asp:Label CssClass="Normal" Text='<%# DataBinder.Eval(Container.DataItem, "Comments") %>' runat="server" />
				</ItemTemplate>
				<SeparatorTemplate>
					<br>
				</SeparatorTemplate>
			</asp:DataList>
		</td>
	</tr>
</table>