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

📄 index.aspx

📁 该系统是留言版系统
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" Inherits="LeaveMessagePage" Codebehind="index.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 runat="server">
    <title>留言板测试页面</title>
    <link type="text/css" rel="Stylesheet" href="css/LM.css" />
    <script type="text/javascript" src="JS/AutoScroll.js"></script>
</head>
<body style="background-color:White">
    <form id="form1" runat="server">
    <div>
        <%--<input id="Button1" type="button"onClick="ScrollDown()" value="滚动到最下"/>
        <a href="#IwantToSay">我要留言</a><!--利用锚点链接可以直接转到发言区,比滚屏到最底更实用--><br />--%>
        <div id="LMHead" class="LMindexHead" style="font-family:黑体; width:700px;">&nbsp;三层留言板51aspx修正版</div>
        <br />
        <asp:DataList ID="LeaveMessageList" runat="server" OnItemCommand="LeaveMessageList_ItemCommand" Width="700px">
            <ItemTemplate>
                <table border="1" cellpadding="0" cellspacing="0" width="100%" style="border-right: #6699cc 1px solid; border-top: #6699cc 1px solid; border-left: #6699cc 1px solid; border-bottom: #6699cc 1px solid;">
                <tr>
                    <th style="text-align:left; font-weight: bold; border-bottom: #6699ff thin solid; border-right:0px; width:70%">
                    <span><%--调用JavaScript实现记录楼数--%>
                        <script type="text/javascript" src="JS/ShowFloorAtLMBox.js"></script>
                    </span>
                    主题:<%# DataBinder.Eval(Container.DataItem,"Title") %></th>
                    <td align="right" style="border-bottom: #6699ff thin solid; border-left:0px; width:30%"><asp:LinkButton ID="LinkButton1" runat="server" CommandName=<%# DataBinder.Eval(Container.DataItem,"ID") %> Text="回复"/>&nbsp;|&nbsp;<a href="#IwantToSay">滚动到最下</a>&nbsp;|&nbsp;<a href="#" onclick="toTop();">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; color:Black; font-size:18px">
                            <asp:Label ID="LContents" runat="server" Width="100%" 
                              Text=<%# ShortString(Convert.ToString(DataBinder.Eval(Container.DataItem,"Contents")), Convert.ToString(DataBinder.Eval(Container.DataItem,"ID"))) %> 
                              style="word-break:break-all" /> 
                            <br />
                            <hr width="90%" align="left" />                          
                            <div style=" margin-left:2px; margin-right:2px; color:#666666; font-size:14px">
                                <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:DataList>
        <a href="LMListForPublic.aspx"><img border="0" src="image/viewAll.gif" /></a>
        <br />
        <%--<input id="Button2" type="button"onClick="toTop()" value="Top"/>--%>
        <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" CssClass="ButtonCss" runat="server" Width="100px" Text="提交" OnClick="Submit_Click" /></td>
            </tr>
        </table>
        <a name="IwantToSay"/>
    </div>
    </form>
    <a href="http://www.51aspx.com/" target="_blank">download from 51aspx.com</a>

</body>
</html>

⌨️ 快捷键说明

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