searchresultcontrol.ascx

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

ASCX
78
字号
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchResultControl.ascx.vb" Inherits="Shop_Search_Controls_SearchResultControl" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<div class="proComplete">
    <div class="NewCatListImage">
        <a href="http://www.overstock.com/?page=proframe&prod_id=1768805"></a>
    </div>
    <div>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>&nbsp;</div>
</div>
<table border="0" cellpadding="0" cellspacing="0" width="550">
    <tr>
        <td class="Pager" height="18">
            <webdiyer:AspNetPager ID="Pager" runat="server" EnableTheming="False" FirstPageText='<span   style="font-family:Webdings, Wingdings" >9</span>'
                HorizontalAlign="Left" LastPageText='<span   style="font-family:Webdings, Wingdings" >:</span>'
                NextPageText='<span   style="font-family:Webdings, Wingdings" >4</span>' NumericButtonCount="8"
                NumericButtonTextFormatString="[{0}]" OnPageChanged="ChangePage" PageSize="10"
                PagingButtonSpacing="8px" PrevPageText='<span   style="font-family:Webdings, Wingdings" >3</span>'
                ShowCustomInfoSection="Right" ShowInputBox="always" SubmitButtonText="GO" Width="550px">
            </webdiyer:AspNetPager>
        </td>
    </tr>
    <tr>
        <td>
            <asp:DataList   ID="dlSearchResult" runat="server" RepeatColumns="1" Width="550px" SkinID="SearchDetail">
                <ItemTemplate>
                    <table id="ProductInfo" cellpadding="7" style="border-top: azure 1px ridge" width="100%">
                        <tr>
                            <td style="height: 153px" width="20%">
                                <table border="0" cellpadding="0" cellspacing="0" height="120" width="120">
                                    <tr>
                                        <td align="center" valign="middle">
                                            <asp:HyperLink ID="linkProductImage" runat="server" ImageUrl='<%# String.Format("~/IHttpHandler/ImageHandler.ashx?Imagepath=~/{0}&Size={1}",Eval("ImagePath"),"120,120") %>'
                                                NavigateUrl='<%# String.Format("~/ProductDetail.aspx?pID={0}",Eval("ProductID")) %>'
                                                ToolTip='<%#String.Format("{0}", Eval("ProductName")) %>'></asp:HyperLink></td>
                                    </tr>
                                </table>
                            </td>
                            <td align="left" style="height: 153px" valign="top" width="100%">
                                <table border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td colspan="2" width="300">
                                            <asp:HyperLink ID="linkProductName" runat="server" NavigateUrl='<%# String.Format("~/ProductDetail.aspx?pID={0}",Eval("ProductID")) %>'
                                                SkinID="bigGrey" Text='<%#String.Format("{0}:({1})", Eval("ProductName"),Eval("ProductCode")) %>'></asp:HyperLink></td>
                                        <td align="right" style="width: 111px" valign="top">
                                            <asp:HyperLink ID="linkViewDetail" runat="server" ImageUrl="~/Images/Shop/nsearch_detail_g.gif"
                                                NavigateUrl='<%# String.Format("~/ProductDetail.aspx?pID={0}",Eval("ProductID")) %>'></asp:HyperLink></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lbListPrice" runat="server" SkinID="bigred" Text='<%#String.Format("Price: {0:C}", Eval("Price")) %>'></asp:Label></td>
                                        <td>
                                            <asp:Label ID="lbPrice" runat="server" Text='<%#String.Format("ListPrice: {0:C}", Eval("ListPrice")) %>'></asp:Label></td>
                                        <td align="right" style="width: 111px" valign="top">
                                            <asp:ImageButton ID="btnAddToCart" runat="server" ImageUrl="~/Images/Shop/nsearch_cart_g.gif" /></td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" style="height: 19px">
                                            <asp:Literal ID="Review" runat="server" Text="Average Customer Review: N/A"></asp:Literal></td>
                                        <td style="width: 111px; height: 19px">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <asp:Literal ID="Category" runat="server"></asp:Literal></td>
                                        <td style="width: 111px">
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList></td>
    </tr>
</table>

⌨️ 快捷键说明

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