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

📄 search.aspx

📁 中文asp.net留言本 介绍了留言簿的实现过程
💻 ASPX
字号:
<%@ Page language="c#" Codebehind="search.aspx.cs" AutoEventWireup="false" Inherits="asp.net.cn.search1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>搜索留言</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<LINK href="style.css" type="text/css" rel="stylesheet">
	</HEAD>
	<body bgColor="#4d4d4d" MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<FONT style="TEXT-ALIGN: center" face="宋体">
				<TABLE id="Table7" style="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>
							<P>
								<TABLE id="Table9" style="WIDTH: 688px" height="8" cellSpacing="0" cellPadding="0" width="688"
									bgColor="#99ccff" border="0">
									<TR>
										<TD></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" NavigateUrl="Default.aspx" ImageUrl="images/img_page/logo.gif">HyperLink</asp:hyperlink><FONT face="宋体"></FONT></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; POSITION: static" 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 title="查看留言" href="Default.aspx">查看留言</a>
																				<li>
																					<a title="写留言" href="new.aspx">写留言</a>
																				<li>
																					<a title="搜索留言" href="search.aspx" class="selected">搜索留言</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">
																		<P>&nbsp;
																			<asp:label id="lbl_c_b" runat="server" Font-Size="9pt"></asp:label>
																			<asp:textbox id="txt_search" runat="server" Font-Size="9pt"></asp:textbox>
																			<asp:button id="btn_search" runat="server" Font-Size="9pt" Text="搜索"></asp:button>
																			<asp:Label id="lbl_tishi" runat="server" Font-Size="9pt" ForeColor="Red"></asp:Label><BR>
																			<BR>
																			&nbsp;
																			<asp:label id="Label1" runat="server" Font-Size="9pt" ForeColor="Gray">搜索范围将包括:留言者的称呼、留言标题、正文以及回复</asp:label>
																			<asp:datagrid id="dg" runat="server" Font-Size="9pt" Width="510px" BorderColor="#CCCCCC" BorderStyle="None"
																				BorderWidth="0px" BackColor="White" CellPadding="2" AutoGenerateColumns="False" ShowHeader="False"
																				Height="0px">
																				<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></P>
																		<P>
																			<asp:label id="lbl_c" runat="server" Font-Size="9pt" DESIGNTIMEDRAGDROP="79"></asp:label></P>
																	</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></TD>
									</TR>
								</TABLE>
							</P>
						</TD>
					</TR>
				</TABLE>
				&nbsp; </FONT>
			<asp:label id="lbl_list" runat="server" Font-Size="9pt"></asp:label></form>
	</body>
</HTML>

⌨️ 快捷键说明

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