search.aspx

来自「ASP.net网站开发四“酷”全书:新闻、论坛、电子商城、博客_源码」· ASPX 代码 · 共 37 行

ASPX
37
字号
<%@ Register TagPrefix="BooksControl" Namespace="BookShop.Web.Controls" Assembly="BookShop.Web"  %>
<%@ Register TagPrefix="BooksControl" TagName="NavBar" Src="Controls/NavBar.ascx" %>
<%@ Page Language="c#" CodeBehind="Search.aspx.cs" Inherits="BookShop.Web.Search" AutoEventWireup="false" enableSessionState="false" ContentType="text/html" ResponseEncoding="gb2312"%>
<HTML>
	<HEAD>
		<title>Search</title>
		<link rel="stylesheet" href="Styles.css">
	</HEAD>
	<body>
		<BooksControl:NavBar id="header" runat="server"></BooksControl:NavBar><br>
		<blockquote>
			<span class="title">搜索结果</span><p>
				<BooksControl:simplepager id="products" runat="server" pagesize="4" emptytext="没找到任何图书" onpageindexchanged="PageChanged">
					<headertemplate>
						<table cellpadding="0" cellspacing="0">
							<tr class="gridHead">
								<td>编号</td>
								<td>名称</td>
								<td>描述</td>
							</tr>
					</headertemplate>
					<itemtemplate>
						<tr class="gridItem">
							<td><%# DataBinder.Eval(Container.DataItem, "Id") %></td>
							<td><a href='Items.aspx?productId=<%# DataBinder.Eval(Container.DataItem, "Id") %>'><%# DataBinder.Eval(Container.DataItem, "Name") %></a></td>
							<td><%# DataBinder.Eval(Container.DataItem, "Description") %></td>
						</tr>
					</itemtemplate>
					<footertemplate>
						</tbody>
					</table>
				</footertemplate>
				</BooksControl:simplepager></p>
		</blockquote>
	</body>
</HTML>

⌨️ 快捷键说明

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