Mercurial > pub > bltoolkit
comparison Demo/Asp.Net/Web/Controls/ItemsControl.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="ItemsControl.ascx.cs" Inherits="PetShop.Web.ItemsControl" %> | |
| 2 <%@ Register TagPrefix="PetShopControl" Namespace="PetShop.Web" %> | |
| 3 | |
| 4 <div class="paging"><a href='Products.aspx?categoryId=<%=Request.QueryString["categoryId"] %>&productId=<%=Request.QueryString["productId"] %>'>< Back to list</a></div> | |
| 5 <div class="itemsPosition" align="center"> | |
| 6 | |
| 7 <PetShopControl:CustomGrid ID="itemsGrid" runat="server" EmptyText="No items found." OnPageIndexChanged="PageChanged" PageSize="2"> | |
| 8 <HeaderTemplate> | |
| 9 <table cellspacing="0" cellpadding="0" border="0" width="387"> | |
| 10 </HeaderTemplate> | |
| 11 <ItemTemplate> | |
| 12 <tr align="left" valign="top"> | |
| 13 <td valign="top" width="148"> | |
| 14 <img id="imgItem" alt='<%# Eval("Name") %>' src='<%# Eval("Image") %>' style="border-width: 0px;" runat="server" /></td> | |
| 15 <td width="33"> </td> | |
| 16 <td valign="top" width="206"> | |
| 17 <table cellspacing="0" cellpadding="0" border="0"> | |
| 18 <tr> | |
| 19 <td class="itemText">Name:</td> | |
| 20 <td class="itemName"><%# string.Format("{0} {1}", Eval("ProductName"), Eval("Name")) %></td> | |
| 21 </tr> | |
| 22 <tr class="itemText"> | |
| 23 <td>Quantity:</td> | |
| 24 <td><%# Eval("Quantity") %></td> | |
| 25 </tr> | |
| 26 <tr class="itemText"> | |
| 27 <td>Price:</td> | |
| 28 <td><%# Eval("Price", "{0:c}") %></td> | |
| 29 </tr> | |
| 30 <tr class="itemText"> | |
| 31 <td colspan="2"><asp:HyperLink ID="lnkCart" runat="server" NavigateUrl='<%# string.Format("~/ShoppingCart.aspx?addItem={0}", Eval("ID")) %>' SkinID="lnkCart"></asp:HyperLink></td> | |
| 32 </tr> | |
| 33 <tr class="itemText"> | |
| 34 <td colspan="2"><asp:HyperLink ID="lnkWishList" runat="server" NavigateUrl='<%# string.Format("~/WishList.aspx?addItem={0}", Eval("ID")) %>' SkinID="lnkWishlist"></asp:HyperLink></td> | |
| 35 </tr> | |
| 36 </table> | |
| 37 </td> | |
| 38 </tr> | |
| 39 </ItemTemplate> | |
| 40 <SeparatorTemplate> | |
| 41 <tr><td height="50" colspan="3"> </td></tr> | |
| 42 </SeparatorTemplate> | |
| 43 <FooterTemplate></table></FooterTemplate> | |
| 44 </PetShopControl:CustomGrid> | |
| 45 | |
| 46 </div> |
