comparison Demo/Asp.Net/Web/Controls/WishListControl.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="WishListControl.ascx.cs" Inherits="PetShop.Web.WishListControl"%>
2 <div align="left" class="cartHeader">Items in your Wish List</div>
3 <asp:Label runat="server" ID="lblMsg" EnableViewState="false" CssClass="label" />
4
5 <asp:Repeater ID="repWishList" runat="server">
6 <HeaderTemplate>
7 <table cellspacing="0" cellpadding="3" rules="all" border="0" class="cart" align="center" width="387">
8 <tr class="labelLists">
9 <th scope="col">&nbsp;</th>
10 <th scope="col">Name</th>
11 <th align="right" scope="col">Price</th>
12 <th scope="col">&nbsp;</th>
13 </tr>
14 </HeaderTemplate>
15 <ItemTemplate>
16 <tr class="listItem">
17 <td>
18 <asp:ImageButton ID="btnDelete" runat="server" AlternateText="Delete" CausesValidation="false"
19 CommandArgument='<%# Eval("ItemId") %>' CommandName="Del" ImageUrl="~/Comm_Images/button-delete.gif"
20 OnCommand="CartItem_Command" ToolTip="Delete" />
21 </td>
22 <td style="width:100%;">
23 <a runat="server" href='<%# string.Format("~/Items.aspx?itemId={0}&productId={1}&categoryId={2}", Eval("ItemId"), Eval("ProductId"), Eval("CategoryId")) %>'><%# string.Format("{0} {1}", Eval("Name"), Eval("Type")) %></a>
24 </td>
25 <td align="right"><%# Eval("Price", "{0:c}")%></td><td>
26 <asp:ImageButton ID="btnToWishList" runat="server" AlternateText="Move to cart" CausesValidation="false"
27 CommandArgument='<%# Eval("ItemId") %>' CommandName="Move" ImageUrl="~/Comm_Images/button-cart.gif"
28 OnCommand="CartItem_Command" ToolTip="Move to cart" />
29 </td>
30 </tr>
31 </ItemTemplate>
32 <FooterTemplate>
33 </table>
34 </FooterTemplate>
35 </asp:Repeater>