specialofferproductcontrol.ascx

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

ASCX
21
字号
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SpecialOfferProductControl.ascx.vb" Inherits="Shop_Product_SpecialOfferProductControl" %>
<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="99%">
        <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 + =
减小字号Ctrl + -
显示快捷键?