sellwellproductcontrol.ascx

来自「C#语言制作asp.net网上商店的」· ASCX 代码 · 共 25 行

ASCX
25
字号
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SellWellProductControl.ascx.vb"
    Inherits="Shop_Product_SellWellProductControl" %>
<div id="navbox-caption">
    <asp:Literal ID="Literal1" runat="server" Text="同类畅销商品"></asp:Literal></div>
<div id="navbox">
    <asp:DataList ID="dlProduct" runat="server" DataKeyField="ProductID" RepeatColumns="1"
        BorderStyle="None" CellPadding="5" RepeatDirection="Horizontal">
        <ItemTemplate>
            <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>
         <div class ="hr"></div>
        </ItemTemplate>
        <ItemStyle  HorizontalAlign="Center" />
    </asp:DataList>
</div>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?