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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page Language="C#" MasterPageFile="~/MasterPage2.master"AutoEventWireup="true" CodeFile="CPU.aspx.cs" Inherits="CPU" %>
  2.     <asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
  3.     <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataSourceID="AccessDataSource1"
  4.         Height="50px" Width="489px">
  5.         <Fields>
  6.              <asp:TemplateField>
  7.                 <ItemTemplate>
  8.                 <img src="<%#Eval("GoodsUrl")%>"alt=""onerror="this.src=this.src.replace('~/','')" width="300" />
  9.                 </ItemTemplate>
  10.             </asp:TemplateField>
  11.             <asp:BoundField DataField="GoodsName" HeaderText="CPU名称" SortExpression="GoodsName" />
  12.             <asp:BoundField DataField="MarketPrice" HeaderText="销售价" SortExpression="MarketPrice" />
  13.             <asp:BoundField DataField="GoodsUnit" HeaderText="计量" SortExpression="GoodsUnit" />
  14.             <asp:BoundField DataField="GoodsBrand" HeaderText="品牌" SortExpression="GoodsBrand" />
  15.             <asp:BoundField DataField="Kernel" HeaderText="CPU内核" SortExpression="Kernel" />
  16.             <asp:BoundField DataField="Corenumber" HeaderText="核心数量" SortExpression="Corenumber" />
  17.             <asp:BoundField DataField="Master" HeaderText="主频" SortExpression="Master" />
  18.             <asp:BoundField DataField="Frequency" HeaderText="总线频率" SortExpression="Frequency" />
  19.             <asp:BoundField DataField="Slot" HeaderText="插槽类型" SortExpression="Slot" />
  20.             <asp:BoundField DataField="Pin" HeaderText="针脚数" SortExpression="Pin" />
  21.             <asp:BoundField DataField="L1cache" HeaderText="L1缓存" SortExpression="L1cache" />
  22.             <asp:BoundField DataField="L2cache" HeaderText="L2缓存" SortExpression="L2cache" />
  23.         </Fields>
  24.     </asp:DetailsView>
  25.         &nbsp;&nbsp;<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="添加到我的购物车"
  26.             Width="200px" /><br />
  27.     
  28.         &nbsp;&nbsp;&nbsp;
  29.         <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/zzu.mdb"
  30.             SelectCommand="SELECT [GoodsName], [MarketPrice], [GoodsUnit], [GoodsBrand], [Kernel], [Corenumber], [Master], [Frequency], [Slot], [Pin], [L1cache], [L2cache],[GoodsUrl] FROM [cpu]">
  31.         </asp:AccessDataSource>
  32.     </asp:Content>