productlistcontrol_x3.ascx
来自「C#语言制作asp.net网上商店的」· ASCX 代码 · 共 52 行
ASCX
52 行
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ProductListControl_X3.ascx.vb"
Inherits="Shop_Product_Controls_ProductListControl_X3" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<div class ="product_category_pager">
<div class ="row-left">
<webdiyer:AspNetPager ID="Pager" runat="server" PageSize="9" NumericButtonCount="8"
ShowCustomInfoSection="Right" PagingButtonSpacing="8px" ShowInputBox="Never"
HorizontalAlign="Left" OnPageChanged="ChangePage" SubmitButtonText="GO" NumericButtonTextFormatString="[{0}]"
NextPageText='<span style="font-family:Webdings, Wingdings" >4</span>' PrevPageText='<span style="font-family:Webdings, Wingdings" >3</span>'
FirstPageText='<span style="font-family:Webdings, Wingdings" >9</span>' LastPageText='<span style="font-family:Webdings, Wingdings" >:</span>'
EnableTheming="False" Width="402px" />
</div>
<div class ="row-right">
<asp:DropDownList ID="ddlSearch" runat="server" AutoPostBack="True">
<asp:ListItem Value="descTime">上架时间↓</asp:ListItem>
<asp:ListItem Value="descSale">销售排行↓</asp:ListItem>
<asp:ListItem Value="ascPrice">商品价格↑</asp:ListItem>
<asp:ListItem Value="descPrice">商品价格↓</asp:ListItem></asp:DropDownList>
</div>
</div>
<div class ="datalist">
<asp:DataList ID="dlProduct" runat="server" RepeatColumns="3" SkinID="ProductList_X3"
DataKeyField="ProductID">
<ItemTemplate>
<table width="200" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="middle" 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" 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> <br />
市场价:<asp:Label ID="lbListPrice" runat="server" Text='<%# String.Format(" {0:C}", Eval("ListPrice")) %>' Font-Strikeout="True"></asp:Label><br />
会员价: <asp:Label ID="lbPrice" runat="server" Text='<%# String.Format(" {0:C}", Eval("Price")) %>'
SkinID="bigred" Font-Strikeout="False"></asp:Label></td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
</div>
<asp:HiddenField ID="hfSqlWhere" runat="server" /><asp:HiddenField ID="hfCategoryID" runat="server" />
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?