?? index.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><!--利用錨點鏈接可以直接轉(zhuǎn)到發(fā)言區(qū),比滾屏到最底更實用--><br />--%>
<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><%--調(diào)用JavaScript實現(xiàn)記錄樓數(shù)--%>
<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="回復(fù)"/> | <a href="#IwantToSay">滾動到最下</a> | <a href="#" onclick="toTop();">Top</a> </td>
</tr>
<tr>
<td style="font-size:smaller" colspan="2">
作者:<%# DataBinder.Eval(Container.DataItem,"User") %>
QQ/MSN:<%# DataBinder.Eval(Container.DataItem,"QQMSN") %>
<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> <span
style="color: #ff0033">*</span>
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">
留言標(biāo)題:<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>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -