📄 default.aspx
字号:
<%@ Page language="c#" Codebehind="default.aspx.cs" AutoEventWireup="false" Inherits="messageboardtest._default" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>留言版首页</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<link href="style/style.css" rel="stylesheet" type="text/css">
</HEAD>
<body bgColor="#004b99" MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<FONT face="宋体">
<TABLE id="Table1" style="Z-INDEX: 101; LEFT: 200px; WIDTH: 624px; POSITION: absolute; TOP: 48px; HEIGHT: 104px"
cellSpacing="0" cellPadding="1" width="624" align="center" border="1">
<TR height="20">
<TD style="FONT-SIZE: 12px" align="center" background="image/bg_1.gif" colSpan="3">留言版
</TD>
</TR>
<TR>
<TD align="right" bgColor="#ffffff" colSpan="3" height="20"> 请选择留言板块:
<asp:DropDownList id="ddlblock" runat="server"></asp:DropDownList> </TD>
</TR>
<TR>
<TD align="center" vAlign="middle" bgColor="#cccccc" height="20">
<asp:DataList id="datalistshow" runat="server" Width="100%" ShowHeader="False" BorderColor="#E7E7FF"
BorderStyle="None" BackColor="White" CellPadding="3" GridLines="Horizontal" BorderWidth="1px"
Height="368px">
<SelectedItemStyle Font-Bold="True" ForeColor="#F7F7F7" BackColor="#738A9C"></SelectedItemStyle>
<AlternatingItemStyle BackColor="#F7F7F7"></AlternatingItemStyle>
<ItemStyle ForeColor="#4A3C8C" BackColor="#E7E7FF"></ItemStyle>
<ItemTemplate>
<TABLE id="Table2" style="BORDER-LEFT-COLOR: black; BORDER-BOTTOM-COLOR: black; BORDER-TOP-COLOR: black; BORDER-COLLAPSE: collapse; BORDER-RIGHT-COLOR: black"
borderColor="#000000" height="100%" cellSpacing="0" cellPadding="0" width="100%" border="1">
<TR>
<TD bgColor="lavender" colSpan="2"> 留言者:<%#DataBinder.Eval(Container.DataItem,"username")%> 留言时间:
<%#DataBinder.Eval(Container.DataItem,"postime")%>
留言分类:<%#DataBinder.Eval(Container.DataItem,"blockname")%>
</TD>
</TR>
<TR>
<TD align="center" width="15%">
<P align="center">留言</P>
<P>内容</P>
</TD>
<TD width="85%"><%#DataBinder.Eval(Container.DataItem,"usermessage")%></TD>
</TR>
</TABLE>
</ItemTemplate>
<FooterStyle HorizontalAlign="Center" ForeColor="Black" BackColor="#E7E7FF"></FooterStyle>
<HeaderStyle Font-Bold="True" ForeColor="#F7F7F7" BackColor="#4A3C8C"></HeaderStyle>
</asp:DataList>
</TD>
</TR>
<TR>
<TD align="center" bgColor="#cccccc">
<TABLE id="Table3" cellSpacing="0" cellPadding="0" width="620" border="1" style="BORDER-COLLAPSE: collapse"
borderColor="#000000" height="100%">
<tr>
<td colspan="2" align="center" height="20" bgColor="#e6e6fa">发表留言</td>
</tr>
<TR>
<TD width="25%" align="center" bgColor="#e7e7ff">用户名:</TD>
<TD width="75%" bgColor="#e7e7ff">
<asp:TextBox id="tbusername" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="用户名不能为空" ControlToValidate="tbusername"></asp:RequiredFieldValidator></TD>
</TR>
<TR>
<TD width="25%" align="center" bgcolor="#e7e7ff">
<P>留言</P>
</TD>
<TD width="75%" align="left" bgcolor="#e7e7ff">
<asp:TextBox id="tbusermessage" runat="server" Width="428px" Height="70px" TextMode="MultiLine"></asp:TextBox></TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD align="center" bgColor="#e7e7ff" colSpan="3">
<asp:Button id="tbsubmit" runat="server" Text="提交"></asp:Button>
<asp:Button id="tbcancel" runat="server" Text="取消"></asp:Button></TD>
</TR>
<TR height="20">
<TD align="center" background="image/bg_1.gif" colSpan="3">
<P align="right"> </P>
</TD>
</TR>
</TABLE>
</FONT>
</form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -