productrelationcontrol.ascx
来自「C#语言制作asp.net网上商店的」· ASCX 代码 · 共 36 行
ASCX
36 行
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ProductRelationControl.ascx.vb" Inherits="Shop_Product_Controls_ProductRelationControl" %>
<a id="aRelation" name="aRelation"></a>
<div class ="hr"></div>
<div class="product-section-title"><asp:Label ID="Label1" runat="server" CssClass="ProductSectionTitle" Text="关联商品"></asp:Label></div>
<div class ="product-section">
<asp:DataList ID="dlProduct" runat="server" RepeatColumns="3"
DataKeyField="ProductID">
<ItemTemplate>
<table width="200" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="middle" align="center" align="center" style="width: 200px">
<asp:HyperLink ID="linkProductImage" runat="server" ToolTip='<%#String.Format("{0}", Eval("ProductName")) %>'
NavigateUrl='<%# String.Format("~/ProductDetail.aspx?pID={0}",Eval("ProductID")) %>'
ImageUrl='<%# String.Format("~/IHttpHandler/ImageHandler.ashx?Imagepath=~/{0}&Size={1}",Eval("ImagePath"),"120,120") %>'></asp:HyperLink>
</td>
</tr>
<tr>
<td valign="top" align="center" style="width: 200px; height: 59px" >
<asp:HyperLink ID="linkProductName" runat="server" NavigateUrl='<%# String.Format("~/ProductDetail.aspx?pID={0}",Eval("ProductID")) %>'
Text='<%# Eval("ProductName") %>' Font-Bold="False" ></asp:HyperLink>
<div id="nsfPrice">
<asp:Label ID="lbPriceCaption" runat="server" Text =" 会员价:"></asp:Label>
<span class="price">
<asp:Label ID="lbPrice" runat="server" Text='<%# String.Format(" {0:C}", Eval("Price")) %>' ></asp:Label></span></div>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
</div>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?