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

📄 default.aspx

📁 中文asp.net留言本 介绍了留言簿的实现过程
💻 ASPX
字号:
<%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="false" Inherits="asp.net.cn._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.css" type="text/css" rel="stylesheet">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<FONT style="TEXT-ALIGN: center" face="宋体">
				<TABLE id="Table7" style="TABLE-LAYOUT: fixed; Z-INDEX: 101; LEFT: 120px; POSITION: static; TOP: 24px; BACKGROUND-COLOR: #99ccff"
					height="300" cellSpacing="0" cellPadding="0" width="690" align="center" border="0">
					<TR>
						<TD style="BACKGROUND-COLOR: #3a97eb">
							<P>
								<TABLE id="Table9" style="WIDTH: 688px" height="8" cellSpacing="0" cellPadding="0" width="688"
									bgColor="#99ccff" border="0">
									<TR>
										<TD bgColor="#3a97eb"></TD>
									</TR>
								</TABLE>
								<TABLE id="Table6" cellSpacing="0" cellPadding="0" width="680" align="center" bgColor="#ffffff"
									border="0">
									<TR>
										<TD><FONT face="宋体">&nbsp;<BR>
												<TABLE id="Table5" style="FONT-SIZE: 9pt; WORD-BREAK: break-all; POSITION: static" height="25"
													cellSpacing="0" cellPadding="0" width="670" align="center" bgColor="#ffffff" border="0">
													<TR>
														<TD vAlign="top" align="left">
															<TABLE id="Table1" style="BACKGROUND-POSITION-X: right; BACKGROUND-IMAGE: url(images/img_page/topbg.jpg); WIDTH: 670px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 96px"
																height="96" cellSpacing="0" cellPadding="0" rules="none" width="670" bgColor="#77b8f0"
																border="0">
																<TR>
																	<TD><asp:hyperlink id="HyperLink1" runat="server" ImageUrl="images/img_page/logo.gif" NavigateUrl="Default.aspx"
																			ToolTip="ASP.NET留言本">HyperLink</asp:hyperlink>&nbsp;</TD>
																</TR>
															</TABLE>
															<BR>
															<TABLE id="Table2" style="FONT-SIZE: 9pt; WORD-BREAK: break-all" height="25" cellSpacing="0"
																cellPadding="0" width="670" border="0">
																<TR>
																	<TD width="5" bgColor="#ce5a0d">&nbsp;</TD>
																	<TD width="660" bgColor="#f38135">&nbsp;欢迎来到
																		<asp:hyperlink id="hl" runat="server" Target="_blank"></asp:hyperlink>留言板 管理员:
																		<asp:hyperlink id="hl_admin" runat="server">管理员</asp:hyperlink>访问:
																		<asp:label id="lbl_view" runat="server"></asp:label>次 留言:
																		<asp:label id="lbl_l" runat="server"></asp:label>条</TD>
																	<TD align="right" width="200" bgColor="#f38135">&nbsp;&nbsp;&nbsp;当前位置:查看留言&nbsp;</TD>
																	<TD width="5" bgColor="#ce5a0d">&nbsp;</TD>
																</TR>
															</TABLE>
															<BR>
															<TABLE id="Table4" style="WORD-BREAK: break-all" height="200" cellSpacing="0" cellPadding="0"
																width="670" align="center" bgColor="#ffffff" border="0">
																<TR>
																	<TD vAlign="top" align="left" width="140" bgColor="#e9e9e9" height="200">
																		<DIV id="navLink" style="FONT-SIZE: 9pt; WIDTH: 144px; HEIGHT: 109px">
																			<UL>
																				<li>
																					<A class="selected" title="查看留言" href="Default.aspx">查看留言</A>
																				<li>
																					<A title="写留言" href="new.aspx">写留言</A>
																				<li>
																					<A title="搜索留言" href="search.aspx">搜索留言</A>
																				<li>
																					<A title="留言帮助" href="help.aspx">留言帮助</A>
																				<li>
																					<A title="管理登陆" href="login.aspx">管理登陆</A>
																				</li>
																			</UL>
																		</DIV>
																	</TD>
																	<TD vAlign="top" align="left" width="520" height="200">
																		<TABLE id="Table11" cellSpacing="0" cellPadding="0" width="510" border="0">
																			<TR>
																				<TD align="right"><asp:label id="lbl_tishi" runat="server" Visible="False" ForeColor="Red" Font-Size="9pt">目前还没有公开的留言信息!</asp:label><asp:label id="lbl_c_b" runat="server" Font-Size="9pt"></asp:label></TD>
																			</TR>
																		</TABLE>
																		<asp:datagrid id="dg" runat="server" Font-Size="9pt" Width="510px" Height="0px" BorderColor="#CCCCCC"
																			BorderStyle="None" BorderWidth="0px" BackColor="White" CellPadding="2" AutoGenerateColumns="False"
																			ShowHeader="False">
																			<FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
																			<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedItemStyle>
																			<ItemStyle ForeColor="#000066"></ItemStyle>
																			<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#006699"></HeaderStyle>
																			<Columns>
																				<asp:TemplateColumn>
																					<ItemTemplate>
																						<FONT face="宋体"><FONT color="#99cccc"><FONT color="#cccccc">&nbsp;------------------------------------------------------------------------------------
																									<TABLE id="Table3" style="FONT-SIZE: 9pt; WORD-BREAK: break-all" height="120" cellSpacing="0"
																										cellPadding="0" width="510" border="0">
																										<TR>
																											<TD vAlign="top" align="center" width="110" rowSpan="2"><%# DataBinder.Eval(Container.DataItem,"sex")%><BR>
																												<BR>
																												<%# DataBinder.Eval(Container.DataItem,"name")%>
																											</TD>
																											<TD vAlign="middle" align="left" width="400">
																												<P>
																													<asp:Label id="Label2" runat="server" Font-Bold="True">
																														<%# DataBinder.Eval(Container.DataItem,"title") %>
																														<br>
																													</asp:Label>&nbsp;
																													<%# DataBinder.Eval(Container.DataItem,"date") %>
																													&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
																													<%# DataBinder.Eval(Container.DataItem,"website") %>
																													<%# DataBinder.Eval(Container.DataItem,"mail") %>
																													<%# DataBinder.Eval(Container.DataItem,"spc") %>
																												</P>
																												<P><FONT color="#99cccc">&nbsp;</FONT><FONT color="#cccccc">&nbsp;----------------------------------------------------------------</FONT></P>
																											</TD>
																										</TR>
																										<TR>
																											<TD vAlign="top" align="left" width="400" colSpan="1" rowSpan="1"><%# DataBinder.Eval(Container.DataItem,"message")%></TD>
																										</TR>
																									</TABLE>
																									<BR>
																								</FONT></FONT></FONT>
																					</ItemTemplate>
																				</asp:TemplateColumn>
																			</Columns>
																			<PagerStyle HorizontalAlign="Left" ForeColor="#000066" Position="TopAndBottom" BackColor="White"
																				Mode="NumericPages"></PagerStyle>
																		</asp:datagrid>
																		<TABLE id="Table12" cellSpacing="0" cellPadding="0" width="510" border="0">
																			<TR>
																				<TD align="right"><asp:label id="lbl_c" runat="server" Font-Size="9pt"></asp:label></TD>
																			</TR>
																		</TABLE>
																	</TD>
																</TR>
															</TABLE>
															<BR>
															<TABLE id="Table8" style="FONT-SIZE: 9pt; BACKGROUND-COLOR: #99ccff" height="80" cellSpacing="0"
																cellPadding="0" width="670" border="0">
																<TR>
																	<TD vAlign="middle" align="center">Copyright@2002-2006 <A href="default.aspx">Asp.net.cn</A>
																		<BR>
																		<BR>
																		版权所有 闽ICP备05036777号</TD>
																</TR>
															</TABLE>
														</TD>
													</TR>
												</TABLE>
												<BR>
											</FONT>
										</TD>
									</TR>
								</TABLE>
								<TABLE id="Table10" style="WIDTH: 688px" height="8" cellSpacing="0" cellPadding="0" width="688"
									bgColor="#99ccff" border="0">
									<TR>
										<TD bgColor="#3a97eb"></TD>
									</TR>
								</TABLE>
							</P>
						</TD>
					</TR>
				</TABLE>
				&nbsp; </FONT>
		</form>
	</body>
</HTML>

⌨️ 快捷键说明

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