|
|
@ -1,4 +1,4 @@ |
|
|
|
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Microsoft.eShopOnContainers.Catalog.WebForms._Default" %> |
|
|
|
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Microsoft.eShopOnContainers.Catalog.WebForms._Default" Async="true" %> |
|
|
|
|
|
|
|
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server"> |
|
|
|
|
|
|
@ -38,5 +38,73 @@ |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="row"> |
|
|
|
<asp:ListView ID="catalogList" runat="server" |
|
|
|
DataKeyNames="Id" GroupItemCount="4" |
|
|
|
ItemType="eShopOnContainers.Core.Models.Catalog.CatalogItem"> |
|
|
|
<EmptyDataTemplate> |
|
|
|
<table > |
|
|
|
<tr> |
|
|
|
<td>Well, there's nothing in the catalog.</td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
</EmptyDataTemplate> |
|
|
|
<EmptyItemTemplate> |
|
|
|
<td/> |
|
|
|
</EmptyItemTemplate> |
|
|
|
<GroupTemplate> |
|
|
|
<tr id="itemPlaceholderContainer" runat="server"> |
|
|
|
<td id="itemPlaceholder" runat="server"></td> |
|
|
|
</tr> |
|
|
|
</GroupTemplate> |
|
|
|
<ItemTemplate> |
|
|
|
<td runat="server"> |
|
|
|
<table> |
|
|
|
<tr> |
|
|
|
<td> |
|
|
|
<a href="ProductDetails.aspx?productID=<%#:Item.Id%>"> |
|
|
|
<img src="<%#:Item.PictureUri%>" |
|
|
|
style="border: solid" /></a> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td> |
|
|
|
<a href="ProductDetails.aspx?productID=<%#:Item.Id%>"> |
|
|
|
<span> |
|
|
|
<%#:Item.Name%> |
|
|
|
</span> |
|
|
|
</a> |
|
|
|
<br /> |
|
|
|
<span> |
|
|
|
<b>Price: </b><%#:String.Format("{0:c}", Item.Price)%> |
|
|
|
</span> |
|
|
|
<br /> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td> </td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
</p> |
|
|
|
</td> |
|
|
|
</ItemTemplate> |
|
|
|
<LayoutTemplate> |
|
|
|
<table style="width:100%;"> |
|
|
|
<tbody> |
|
|
|
<tr> |
|
|
|
<td> |
|
|
|
<table id="groupPlaceholderContainer" runat="server" style="width:100%"> |
|
|
|
<tr id="groupPlaceholder"></tr> |
|
|
|
</table> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td></td> |
|
|
|
</tr> |
|
|
|
<tr></tr> |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
</LayoutTemplate> |
|
|
|
</asp:ListView> |
|
|
|
</div> |
|
|
|
</asp:Content> |