customerreviewcontrol.ascx

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

ASCX
41
字号
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="CustomerReviewControl.ascx.vb" Inherits="Shop_Product_Controls_CustomerReviewControl" %>
<%@ Register Assembly="Xpdt.Web.UI.Ratings" Namespace="Xpdt.Web.UI.WebControls" TagPrefix="Xpdt" %>

<a name="aReview" id="aReview"></a>
<div class ="hr"></div>
<div class ="product-section-title"><asp:Label ID="lbCustomerReview" CssClass="ProductSectionTitle" runat="server"  Text="顾客评论"></asp:Label></div>
<div>   <b>    <asp:Literal ID="ReviewLink" runat="server"></asp:Literal></b></div>
<div class ="product-section">
        <asp:Repeater ID="rptReviews" runat="server" >
    <ItemTemplate>
        <asp:Label ID="lblReviewID" runat="server" Text='<%#Eval("reviewID")%>' Visible="false"></asp:Label>
        <table width="600">
            <tr>
                <td colspan="2">
                    <xpdt:rater id="rvRating" runat="server" displayonly="true" displayvalue='<%#Convert.ToInt16(Eval("rating"))%>'></xpdt:rater>
                    &nbsp; <b>
                        <%#Eval("title")%>
                    </b>,
                    <%#String.Format("{0:f}", Eval("ReviewDate"))%>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <b>评论者:
                      <%#Eval("ReviewerName")%><%#IIf(Eval("Location").ToString.Length = 0, "", String.Format("({0})", Eval("Location")))%>
                    </b>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <%#Eval("Comments")%>
                </td>
            </tr>
         
        </table>
    </ItemTemplate>
</asp:Repeater>
</div>


⌨️ 快捷键说明

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