tellafriendcontrol.ascx

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

ASCX
221
字号
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="TellAFriendControl.ascx.vb" Inherits="Shop_User_TellAFriendControl" %>
<asp:MultiView ID="mvReview" runat="server" ActiveViewIndex="0">
    <asp:View ID="vReview" runat="server">
        <table border="0" cellpadding="0" cellspacing="2" width="100%">
            <tr>
                <td colspan="2">
                    <br />
                    <b>告诉我们你的想法:</b><br />
                    <br />
                    谢谢你拿出时间来交流意见.请填写下面的详细评论信息.</td>
            </tr>
            <tr valign="top">
                <td>
                    <asp:Image ID="imgeProduct" runat="server" />
                    &nbsp; &nbsp;
                    <asp:Label ID="lbProductName" runat="server" SkinID="bigred"></asp:Label></td>
                <td align="left">
                    <strong></strong>
                </td>
            </tr>
            <tr style="font-weight: bold">
                <td colspan="2">
                    评论者:</td>
            </tr>
            <tr style="font-weight: bold">
                <td>
                    <asp:TextBox ID="txtReviewer" runat="server" Width="420px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtReviewer"
                        ErrorMessage="*" ValidationGroup="review"></asp:RequiredFieldValidator></td>
                <td valign="top">
                </td>
            </tr>
            <tr>
                <td align="left" colspan="2">
                    <table border="0" cellpadding="0" cellspacing="2" width="100%">
                        <tr>
                            <td align="left" class="Pager" colspan="2" style="height: 18px" valign="middle">
                                <strong>为该商品评级 </strong>
                            </td>
                        </tr>
                        <tr>
                            <td align="left" colspan="2" valign="top">
                                <strong>
                                    <br />
                                </strong>
                            </td>
                        </tr>
                        <tr>
                            <td align="left" colspan="2" valign="top">
                                &nbsp;非常好(5星)&nbsp; 比较好(4星)&nbsp; 一般(3星)&nbsp; 不怎么好(2星)&nbsp; 太差了(1星)<br />
                            </td>
                        </tr>
                        <tr>
                            <td align="left" colspan="2" valign="top">
                                <span style="height: 18px"><strong>推荐给你的朋友 </strong></span>
                            </td>
                        </tr>
                        <tr>
                            <td align="left" colspan="2" valign="top">
                                <asp:RadioButtonList ID="rbComment" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                    <asp:ListItem Value="-1">是</asp:ListItem>
                                    <asp:ListItem Value="0">否</asp:ListItem>
                                </asp:RadioButtonList>&nbsp;
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="rbComment"
                                    ErrorMessage="*" ValidationGroup="review"></asp:RequiredFieldValidator>
                                <br />
                            </td>
                        </tr>
                        <tr style="color: #000000">
                            <td align="left" class="Pager" colspan="2" height="18" valign="middle">
                                <b>请输入您的评论</b></td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 346px" valign="top">
                                <strong>评论标题:</strong>
                            </td>
                            <td align="left" valign="top" width="75%">
                                <strong>&nbsp;</strong></td>
                        </tr>
                        <tr style="font-weight: bold">
                            <td align="left" style="width: 346px" valign="top">
                                <asp:TextBox ID="txtTitle" runat="server" Width="420px"></asp:TextBox>
                            </td>
                            <td align="left" valign="top">
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtTitle"
                                    ErrorMessage="*" ValidationGroup="review"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 346px" valign="top">
                                <strong>评论内容:</strong></td>
                            <td align="left" valign="top">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 346px" valign="top">
                                <asp:TextBox ID="txtComments" runat="server" Height="126px" TextMode="MultiLine"
                                    Width="420px"></asp:TextBox>
                            </td>
                            <td align="left" valign="top">
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtComments"
                                    ErrorMessage="*" ValidationGroup="review"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td align="left" colspan="2" valign="top">
                                Your review must contain between 50 and 10,000 characters.
                                <br />
                            </td>
                        </tr>
                        <tr>
                            <td align="left" class="Pager" colspan="2" height="18" valign="middle">
                                <strong>请输入您的信息</strong></td>
                        </tr>
                        <tr>
                            <td align="left" colspan="2" valign="top">
                                位置(例如:江苏徐州)<br />
                                <asp:TextBox ID="txtLocation" runat="server" Width="420px"></asp:TextBox></td>
                        </tr>
                    </table>
                    <asp:Button ID="btnReview" runat="server" Text="预览" ValidationGroup="review" Width="95px" /></td>
            </tr>
        </table>
    </asp:View>
    <asp:View ID="vPreview" runat="server">
        <table border="0" cellpadding="0" cellspacing="2" width="100%">
            <tr>
                <td>
                    <strong>Please check your review for accuracy and click "Submit" to send</strong>.
                    If you have made an error or wish to cancel your review, use the Edit or Cancel
                    buttons.
                    <p>
                        Please note that your review will take up to 72 hours to appear following submission.
                        Thank you for your feedback.</p>
                </td>
            </tr>
            <tr>
                <td style="height: 110px">
                    <br />
                    <table class="ProductBox" width="600">
                        <tr>
                            <td colspan="2">
                                &nbsp; <b>
                                    <%=txtTitle.Text%>
                                </b>,
                                <%=String.Format("{0:f}", Now)%>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <b>评论者:
                                    <%=txtReviewer.Text%>
                                    <%=IIf(txtLocation.Text.Length = 0, "", String.Format("({0})", txtLocation.Text))%>
                                </b>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" style="width: 597px">
                                <%=txtComments.Text%>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" style="width: 597px; height: 40px">
                                <br />
                                <b>是否推荐给你的朋友:</b><%=IIf(CInt(rbComment.SelectedValue) = 0, "否", "是")%></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <br />
                    <asp:Button ID="btnSubmit" runat="server" Text="提交" Width="95px" />
                    <asp:Button ID="btnEdit" runat="server" Text="编辑" Width="95px" />
                    <asp:Button ID="btnCancel" runat="server" Text="取消" Width="95px" />&nbsp;</td>
            </tr>
            <tr>
                <td style="height: 19px">
                    &nbsp;</td>
            </tr>
        </table>
    </asp:View>
    <asp:View ID="vFinish" runat="server">
        <asp:Label ID="lbFinishMessage" runat="server"></asp:Label><br />
        <br />
        <asp:Panel ID="pReviewed" runat="server" Height="50px" Visible="False" Width="100%">
            <table class="ProductBox" width="600">
                <tr>
                    <td colspan="2">
                        &nbsp; <b>
                            <%=txtTitle.Text%>
                        </b>,
   
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <b>评论者:
                            <%=txtReviewer.Text%>
                            <%=IIf(txtLocation.Text.Length = 0, "", String.Format("({0})", txtLocation.Text))%>
                        </b>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" style="width: 597px">
                        <%=txtComments.Text%>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" style="width: 597px; height: 40px">
                        <br />
                        <b>是否推荐给你的朋友:</b><%=IIf(CInt(rbComment.SelectedValue) = 0, "否", "是")%></td>
                </tr>
            </table>
        </asp:Panel>
        <p>
            <br />
            <asp:HyperLink ID="hlBackProduct" runat="server">返回商品页</asp:HyperLink><a href="http://www.overstock.com/?page=proframe&prod_id=1862668&TID=hvrsp:20060911:prod1&IID=prod1"></a>&nbsp;</p>
    </asp:View>
</asp:MultiView><br />
<asp:HiddenField ID="hfProductID" runat="server" />

⌨️ 快捷键说明

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