<%@ Page Language="C#" MasterPageFile="~/mypage.master" AutoEventWireup="true" CodeFile="message.aspx.cs" Inherits="message" Title="无标题页" %>

<%@ Register src="aboutme.ascx" tagname="aboutme" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphleft" Runat="Server">
    <table style="width: 312px">
        <tr>
            <td colspan="2" align="center" style="height: 44px">
                <img alt="" src="Images/mestop.GIF" /></td>
        </tr>
        <tr>
            <td align="right" style="width: 60px">
                用户名：</td>
            <td align="left">
                <asp:TextBox ID="TextBox1" runat="server" Width="99px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="TextBox1" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 60px" valign="top">
                留言：</td>
            <td align="left">
                <asp:TextBox ID="TextBox2" runat="server" Height="192px" Width="237px" 
                    TextMode="MultiLine"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="TextBox2" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="添加留言" />
                <uc1:aboutme ID="aboutme1" runat="server" />
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphmain" Runat="Server">
    <asp:DataList ID="DataList1" runat="server" Width="96%">
        <ItemTemplate>
            <table style="border-right: silver 2px solid; border-top: silver 2px solid; border-left: silver 2px solid;width: 100%; border-bottom: silver 2px solid;">
                <tr style="border-bottom-style: dashed; border-bottom-width: 1px; border-bottom-color: #C0C0C0">
                    <td align="left">
                        　姓名：<asp:Label ID="lblstu" runat="server" Text='<%#Eval("mesname") %>'></asp:Label>
                        　留言时间：<asp:Label ID="lbltime" runat="server" Text='<%#Eval("mestime" )%>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="left" 
                
                        style="border-bottom-style: dashed; border-bottom-width: 1px; border-bottom-color: #C0C0C0">
                        　<asp:Label ID="lblly" runat="server" ForeColor="#336699" 
                  Style="line-height: 20px; text-align: left" Width="96%"><%# Eval("mestext")%></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="left">
                        　<asp:Label ID="lblbk" runat="server" ForeColor="#666666" 
                            style="color: #FF3300"><%# Eval("mesreback")%></asp:Label>
                    </td>
                </tr>
            </table>
            <br />
        </ItemTemplate>
    </asp:DataList>
</asp:Content>

