⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lmlistforpublic.aspx

📁 该系统是留言版系统
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" Inherits="LMListForPublic" Codebehind="LMListForPublic.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>浏览所有留言信息</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <span style="font-size: 16pt"><strong>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 显示所有留言<br />
        </strong></span>
        <a href="index.aspx">回到主页</a>
        <br />
        <br />
        <asp:GridView ID="LMGridView" runat="server" AutoGenerateColumns="false" ShowHeader="false" GridLines="none" Width="700px" OnRowCommand="LMGridView_RowCommand">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <table border="1" cellpadding="0" cellspacing="0" width="100%">
                            <tr>
                                <th style="text-align:left; border-right:0px; width:70%">
                                <span><%--调用JavaScript实现记录楼数--%>
                                    <%--<script type="text/javascript" src="JS/ShowFloorAtLMBox.js"></script>--%>
                                </span>
                                <!--主题:--><%# TitleAndFloor(Convert.ToString(DataBinder.Eval(Container.DataItem,"Title"))) %></th>
                                <td align="right" style="border-left:0px; width:30%"><asp:Button ID="wb" runat="server" CommandName=<%# DataBinder.Eval(Container.DataItem,"ID") %> Text="回复"/>&nbsp;|&nbsp;<a href="#IwantToSay">滚动到最下</a>&nbsp;|&nbsp;<a href="#" onclick="javascript:scroll(0,0);">Top</a>&nbsp;</td>
                            </tr>
                            <tr>
                                <td style="font-size:smaller" colspan="2">
                                    作者:<%# DataBinder.Eval(Container.DataItem,"User") %>
                                    &nbsp;&nbsp;&nbsp;&nbsp;
                                    QQ/MSN:<%# DataBinder.Eval(Container.DataItem,"QQMSN") %>           
                                    &nbsp;&nbsp;&nbsp;&nbsp;
                                    <font color="gray"><%# DataBinder.Eval(Container.DataItem,"SubmitTime") %></font>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <div style="margin-left:4px; margin-right:4px; margin-top:2px; margin-bottom:2px">
                                        <asp:Label ID="LContents" runat="server" Width="100%" Text=<%# DataBinder.Eval(Container.DataItem,"Contents") %> style="word-break:break-all" /> 
                                        <br />
                                        <hr />                          
                                        <div style=" margin-left:2px; margin-right:2px; color:Gray; font-size:smaller">
                                            <asp:Label ID="LWriteBack" runat="server" Width="100%" Text=<%# DataBinder.Eval(Container.DataItem,"WriteBack") %> style="word-break:break-all" />                               
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <asp:Label ID="PageNumber" runat="server" Text="1"></asp:Label>
        <asp:LinkButton ID="Prev" runat="server" Enabled="False" OnClick="Prev_Click">上一页</asp:LinkButton>
        <asp:LinkButton ID="Next" runat="server" OnClick="Next_Click">下一页</asp:LinkButton>
        <br />
        <table id="lmt" border="1" style="width: 700px; height: 180px">
            <tr>
                <td style="width: 100%; height:25px">
                    用户名:<asp:TextBox ID="TBuser" runat="server" Height="21px" Width="150px"></asp:TextBox>&nbsp;<span
                        style="color: #ff0033">*</span> &nbsp; &nbsp; &nbsp;
                    QQ / MSN:<asp:TextBox ID="TBQQMSN" runat="server" Height="21px" Width="150px"></asp:TextBox>
                    <span style="color: #ff0033">*</span></td>
            </tr>
            <tr>
                <td style="width: 100%; height:25px">
                    留言标题:<asp:TextBox ID="TBtitle" runat="server" Height="21px" Width="412px"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 100%; height:100px">
                    留言信息:<span style="font-size:small; color:Gray">(按 Ctrl+Enter 提交)</span><br />
                    <asp:TextBox ID="TBcontents" runat="server" Height="80px" Width="90%" TextMode="MultiLine"></asp:TextBox>
                    <span style="color: #ff0000">*</span></td>
            </tr>
            <tr>
                <td style="width: 100%; height:30px; text-align: center;">
                    <asp:Button ID="Submit" runat="server" Text="提交" Width="100px" OnClick="Submit_Click" /></td>
            </tr>
        </table>
        <br />
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="管理" />
        (Type in "51aspx")<a name="IwantToSay"/></div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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