📄 newarrivalsproductlistcontrol.ascx
字号:
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="NewArrivalsProductListControl.ascx.vb" Inherits="Shop_Product_NewArrivalsProductListControl" %>
<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="3" BorderStyle="None" CellPadding="5" Width="100%">
<ItemTemplate>
<center style="height:180; width:180px" >
<p> <asp:HyperLink ID="linkProductImage" runat="server" ImageUrl='<%# String.Format("~/IHttpHandler/ImageHandler.ashx?Imagepath=~/{0}&Size={1}",Eval("ImagePath"),"100,100") %>'
NavigateUrl='<%# String.Format("~/ProductDetail.aspx?pID={0}",Eval("ProductID")) %>'
ToolTip='<%#String.Format("{0}", Eval("ProductName")) %>'></asp:HyperLink></p>
<div> <asp:HyperLink ID="linkProductName" runat="server" NavigateUrl='<%# String.Format("~/ProductDetail.aspx?pID={0}",Eval("ProductID")) %>'
Text='<%#Eval("ProductName") %>'></asp:HyperLink></div>
<div> <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></div>
</center>
</div>
</ItemTemplate>
<ItemStyle BorderStyle="Dotted" BorderWidth="1px" />
</asp:DataList>
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -