📄 commendproductcontrol.ascx
字号:
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="CommendProductControl.ascx.vb" Inherits="Shop_Product_CommendProductControl" %>
<div class="title">
<asp:Literal ID="Caption" runat="server" Text="推荐商品"> </asp:Literal></div>
<div id="item-list">
<asp:DataList ID="dlProduct" runat="server" DataKeyField="ProductID" RepeatColumns="1"
RepeatDirection="Horizontal" CellPadding="5" Width="100%">
<ItemTemplate>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td align="left" rowspan="2" valign="top" width="20">
<div id="number">
<asp:Literal ID="Number" runat="server" Text="<%# Container.ItemIndex + 1 %>"></asp:Literal>
</div>
</td>
<td align="center" height="80px" rowspan="2" valign="middle" width="120px">
<asp:HyperLink ID="linkProductImage" runat="server" ImageUrl='<%# String.Format("~/IHttpHandler/ImageHandler.ashx?Imagepath=~/{0}&Size={1}",Eval("ImagePath"),"80,80") %>'
NavigateUrl='<%# String.Format("~/ProductDetail.aspx?pID={0}",Eval("ProductID")) %>'
ToolTip='<%#String.Format("{0}", Eval("ProductName")) %>'></asp:HyperLink>
</td>
<td align="left" colspan="2" style="height: 19px" valign="bottom">
<asp:HyperLink ID="linkProductName" runat="server" NavigateUrl='<%# String.Format("~/ProductDetail.aspx?pID={0}",Eval("ProductID")) %>'
Text='<%#Eval("ProductName") %>'></asp:HyperLink></td>
</tr>
<tr>
<td style="height: 43px" width="290">
<asp:Label ID="lbListPrice" runat="server" Text='<%#String.Format("ListPrice: {0:C}", Eval("ListPrice")) %>'></asp:Label>
<br />
<asp:Label ID="lbPrice" runat="server" SkinID="bigred" Text='<%#String.Format("Price: {0:C}", Eval("Price")) %>'></asp:Label>
</td>
</tr>
</tbody>
</table>
</div>
</ItemTemplate>
<ItemStyle BorderStyle="Dotted" BorderWidth="1px" />
</asp:DataList></div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -