📄 search.aspx
字号:
<%@ Register TagPrefix="eshop" TagName="HeaderMenu" Src="UserControl/HeaderMenu.ascx" %>
<%@ Register TagPrefix="eshop" TagName="CategoryList" Src="UserControl/CategoryList.ascx" %>
<%@ Page language="c#" Codebehind="Search.aspx.cs" AutoEventWireup="false" Inherits="eshop.Search" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>EShop</title>
<LINK href="Styles.css" type="text/css" rel="stylesheet">
</HEAD>
<body>
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td colSpan="2"><eshop:headermenu id="Header1" runat="server"></eshop:headermenu></td>
</tr>
<tr>
<td valign="top" width="145">
<eshop:CategoryList id="Menu1" runat="server" />
<img height="1" src="images/space.gif" width="145">
</td>
<td align="left" valign="top" width="700">
<table align="left" width="100%" border="0">
<TBODY>
<tr valign="top">
<td align="left" colSpan="2">
<BLOCKQUOTE><SPAN class="title">搜索结果</SPAN>
<P>
<asp:Repeater id="products" runat="server">
<headertemplate>
<table cellpadding="0" cellspacing="0">
<tr class="gridHead">
<td nowrap="true">商品编号</td>
<td>商品名称</td>
<td>简单描述</td>
<td nowrap=true>添加到购物车</td>
</tr>
</headertemplate>
<itemtemplate>
<tr class="gridItem">
<td><%# DataBinder.Eval(Container.DataItem, "ProductId") %></td>
<td><a href='ProductInfo.aspx?productId=<%# DataBinder.Eval(Container.DataItem, "ProductId") %>'><%# DataBinder.Eval(Container.DataItem, "ProductName") %></a></td>
<td><%# DataBinder.Eval(Container.DataItem, "Intro") %></td>
<td><a href='AddToCart.aspx?productId=<%# DataBinder.Eval(Container.DataItem, "ProductId")%>'><img src="images\next_down.gif" border="0"></a></td>
</tr>
</itemtemplate>
<footertemplate>
</table>
</footertemplate> </asp:Repeater></P></BLOCKQUOTE>
</td>
</tr>
<tr>
<form id="form1" runat="server">
<td>共计<asp:Label ID="PageCount" Runat="server" />页</td>
<TD align=right>到第
<asp:DropDownList id="page" Runat="server" AutoPostBack="True"></asp:DropDownList>页</TD>
</form>
</tr>
</table>
</TD></TR></TBODY></TABLE>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -