GoodsList5.aspx
上传用户:vtryaojia
上传日期:2020-04-18
资源大小:1214k
文件大小:2k
源码类别:

SCSI/ASPI

开发平台:

Others

  1. <%@ Page Language="C#" MasterPageFile="~/MasterPage2.master" AutoEventWireup="true" CodeFile="GoodsList5.aspx.cs" Inherits="GoodsList5" Title="Untitled Page" %>
  2. <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  3.     <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="AccessDataSource1" AllowPaging="True" PageSize="4" Width="476px">
  4.         <Columns>
  5.             <asp:TemplateField><ItemTemplate>
  6.             <table cellspacing ="2" cellpadding ="1">
  7.             <tr>
  8.             <td>
  9.             <img src="<%#Eval("GoodsUrl") %>" onerror="this.src=this.src.replace('~/','')" border="0" width="200" height ="175" /></td>
  10.             <td>
  11.             商品名称:
  12.             <asp:Label ID="GoodsNameLabel" runat="server" Text='<%# Eval("GoodsName") %>'></asp:Label><br />
  13.             品牌:
  14.             <asp:Label ID="GoodsBrandLabel" runat="server" Text='<%# Eval("GoodsBrand") %>'></asp:Label><br />
  15.             价格:
  16.             <asp:Label ID="MarketPriceLabel" runat="server" Text='<%# Eval("MarketPrice") %>'></asp:Label><br />
  17.             数量:
  18.             <asp:Label ID="GoodsUnitLabel" runat="server" Text='<%# Eval("GoodsUnit") %>'></asp:Label><br />
  19.             核心数量:
  20.             <asp:Label ID="CorenumberLabel" runat="server" Text='<%# Eval("Corenumber") %>'></asp:Label><br />
  21.             主频:
  22.             <asp:Label ID="MasterLabel" runat="server" Text='<%# Eval("Master") %>'></asp:Label><br />
  23.            总线频率:
  24.             <asp:Label ID="FrequencyLabel" runat="server" Text='<%# Eval("Frequency") %>'></asp:Label><br />
  25.               L1缓存:
  26.             <asp:Label ID="L1cacheLabel" runat="server" Text='<%# Eval("L1cache") %>'></asp:Label><br />
  27.             <a href="CPU.aspx?GoodsID=<%# Eval("GoodsID")%>"target="_blank">详细信息</a>
  28.             </td>
  29.             </tr>
  30.             </table>
  31.             
  32.              
  33.             </ItemTemplate></asp:TemplateField>
  34.             
  35.         </Columns>
  36.         
  37.     </asp:GridView>   
  38.     <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/zzu.mdb"
  39.         SelectCommand="SELECT [GoodsUrl], [GoodsBrand],[GoodsName], [MarketPrice], [GoodsUnit], [Kernel],[Corenumber],[Master],[Frequency],[Slot],[Pin],[L1cache],[L2cache],[GoodsID], [ClassID] FROM [CPU]">
  40.     </asp:AccessDataSource>
  41. </asp:Content>