comparison Demo/Asp.Net/Web/Controls/ProductsControl.ascx @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f990fcb411a9
1 <%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProductsControl.ascx.cs" Inherits="PetShop.Web.ProductsControl" EnableViewState="false" %>
2 <%@ Register TagPrefix="PetShopControl" Namespace="PetShop.Web" %>
3 <%@ OutputCache Duration="100000" VaryByParam="page;categoryId" %>
4
5 <div align="center" class="productsPosition">
6 <PetShopControl:CustomList ID="productsList" runat="server" EmptyText="No products found." OnPageIndexChanged="PageChanged" PageSize="4" RepeatColumns="2" CellPadding="16" CellSpacing="0" Width="500px">
7 <ItemTemplate>
8 <table cellpadding="0" cellspacing="0">
9 <tr>
10 <td valign="top" width="91"><a href='Items.aspx?productId=<%# Eval("Id") %>&categoryId=<%# Eval("categoryId") %>'><img id="imgProduct" alt='<%# Eval("Name") %>' src='<%# Eval("Image") %>' style="border-width: 0px;" runat="server" /></a></td>
11 <td width="26">&nbsp;</td>
12 <td valign="top" width="120"><a href='Items.aspx?productId=<%# Eval("Id") %>&categoryId=<%# Eval("categoryId") %>'><div class="productName"><%# Eval("Name") %></div></a><div class="productDescription"><%# Eval("Description") %></div></td>
13 </tr>
14 </table>
15 </ItemTemplate>
16 <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
17 </PetShopControl:CustomList>
18 </div>