ProductList.aspx
资源名称:SHOPASP.rar [点击查看]
上传用户:xiecaij
上传日期:2015-02-08
资源大小:2016k
文件大小:3k
源码类别:
百货/超市行业
开发平台:
ASP/ASPX
- <%@ Register TagPrefix="eshop" TagName="HeaderMenu" Src="UserControl/HeaderMenu.ascx" %>
- <%@ Register TagPrefix="eshop" TagName="CategoryList" Src="UserControl/CategoryList.ascx" %>
- <%@ Page language="c#" Codebehind="ProductList.aspx.cs" AutoEventWireup="false" Inherits="eshop.ProductList" %>
- <!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="imagesnext_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>