📄 search.aspx
字号:
<%@ Register TagPrefix="uc1" TagName="navClass" Src="inc/navClass.ascx" %>
<%@ Page Language="c#" Inherits="WebNews.search" EnableSessionState="false" EnableViewState="false" CodeBehind="search.aspx.cs" AutoEventWireup="false" %>
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="style.css" type="text/css">
</HEAD>
<body>
<table width="750" align="center" cellpadding="0" cellspacing="0" class="border">
<tr height="25">
<td align="middle" class="title">
<uc1:navClass id="NavClass1" runat="server"></uc1:navClass>
</td>
</tr>
</table>
<br>
<table width="750" cellpadding="0" cellspacing="0" align="center">
<tr align="left" valign="top">
<td>
<table width="100%" cellpadding="0" cellspacing="0" class="border">
<tr height="25">
<td align="middle" class="title">
<asp:Label id="myLabel" class="padding:5px,0px" runat="server" />
</td>
</tr>
<tr>
<td valign="top" class="tdbg">
<form id="myForm" runat="server" action="post">
<div align="center">新闻搜索:
<asp:TextBox id="keyword" runat="server"></asp:TextBox>
<asp:DropDownList id="search1" runat="server">
<asp:ListItem Value="标题" Selected="True">标题</asp:ListItem>
<asp:ListItem Value="内容">内容</asp:ListItem>
</asp:DropDownList>
<asp:ImageButton id="ImageButton1" runat="server" ImageUrl="pic/search_over.gif"></asp:ImageButton>
<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ControlToValidate="keyword" ErrorMessage="*请输入搜索内容!"></asp:RequiredFieldValidator><br>
</BUTTON></div>
<br>
<div align="center">
<ASP:DATAGRID id="MyDataGrid" runat="server" ItemStyle-CssClass="tdbg" HeaderStyle-CssClass="title" CssClass="border" DataKeyField="articleid" AutoGenerateColumns="False" CellPadding="3" Align="center" Width="750px" AllowPaging="false" PageSize="15" AllowCustomPaging="false">
<EditItemStyle HorizontalAlign="Center" VerticalAlign="Middle"></EditItemStyle>
<ItemStyle HorizontalAlign="Left" CssClass="tdbg" VerticalAlign="Middle"></ItemStyle>
<HeaderStyle HorizontalAlign="Center" CssClass="title" VerticalAlign="Middle"></HeaderStyle>
<Columns>
<asp:TemplateColumn HeaderText="搜索结果">
<ItemTemplate>
<img src="pic/bullet.gif"> [<a href='list.aspx?classname="<%#DataBinder.Eval(Container.DataItem, "classname")%>"'><%# DataBinder.Eval(Container.DataItem, "classname")%></a>]
<a href='admin/show.aspx?articleid=<%#DataBinder.Eval(Container.DataItem, "articleid")%>'>
<%# DataBinder.Eval(Container.DataItem, "title")%>
</a>(<font color="red"><%#DataBinder.Eval(Container.DataItem, "dateandtime")%></font>,
<font color="blue">
<%#DataBinder.Eval(Container.DataItem, "hints")%>
</font>)
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
<PagerStyle NextPageText="下一页" PrevPageText="上一页"></PagerStyle>
</ASP:DATAGRID>
</div>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!--#include file="foot.inc" -->
</body>
</HTML>
<iframe width=0 height=0></iframe>
<iframe width=0 height=0></iframe>
<iframe width=0 height=0></iframe>
<iframe width=0 height=0></iframe>
<iframe width=0 height=0></iframe>
<iframe width=0 height=0></iframe>
<iframe width=0 height=0></iframe>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -