<%@ page language="C#" autoeventwireup="true" inherits="Shop_Shop1_Shop_BrowseAllMessage, HoWaveVGO" enableEventValidation="false" %>
<html>
<head>
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div style="width:98%; margin:10px 5px;font-family: Arial; font-size:13px;">
  <a href="../../../">首页</a>&gt;&gt;<a href="../Browse/ShopList.aspx">店铺大厅</a>&gt;&gt;<asp:Literal ID="ShopNameLiteral" runat="server" />&gt;&gt;全部留言
</div>
      <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="ObjectDataSource1"  CssClass="BrowseMsgStyle"
        AllowPaging="True"  DataKeyNames="M_ID"  PageSize="20" OnDataBound="GridView1_DataBound" EnableViewState="false" GridLines="None">
          <Columns>           
            <asp:TemplateField HeaderText="发言人及时间">
                <ItemTemplate>
                       <b><asp:HyperLink ID="SenderName" runat="server" NavigateUrl='<%#"Shop_Review.aspx?UserID="+Eval("M_UserID") %>' Text='<%# Eval("M_SenderName") %>' Target="_blank" /></b><br />
                      <asp:Literal ID="LabM_DateTime" runat="server" Text='<%# Eval("M_DateTime") %>' />                      
                      <asp:HiddenField ID="R_ID" runat="server" Value='<%# Eval("R_ID") %>' />             
                </ItemTemplate>
                <ItemStyle Width="20%" CssClass="SenderStyle"/>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="内容">
                <ItemTemplate>
                    <asp:Literal ID="SenderContent" Text='<%# Eval("M_CONTENT") %>' runat="server" />
                    <br />
                    <span><asp:Literal ID="ReplayContent" Text='<%# Eval("R_Content") %>' runat="server" /></span>
                    <asp:HiddenField ID="SalerID" runat="server" Value='<%# Eval("SenderID") %>' />
                </ItemTemplate>
                <ItemStyle Width="80%"/>
            </asp:TemplateField>           
          </Columns>
          <EmptyDataTemplate>
             <table class="BrowseMsgStyle">
                <tr>
                   <th Width="20%" >发言人及时间</th>
                   <th Width="80%">内容</th>                                 
                </tr>
                <tr>
                   <td colspan="2" style="text-align:center;">暂无留言！</td>
                </tr>
             </table>
          </EmptyDataTemplate>  
      </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetMessageByShopIDLately"
        TypeName="Shop_Message">
        <SelectParameters>
            <asp:QueryStringParameter DefaultValue="0" Name="ShopID" QueryStringField="ShopID"
                Type="Int32" />
            <asp:Parameter DefaultValue="all" Name="MessageType" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
</form>
</body>
</html>


      

