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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page Language="C#" MasterPageFile="~/MasterPage2.master"AutoEventWireup="true" CodeFile="mainboard.aspx.cs" Inherits="mainboard" %>
  2.   
  3.    <asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
  4.        
  5.     <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataSourceID="AccessDataSource1"
  6.         Height="50px" Width="488px">
  7.         <Fields>
  8.              <asp:TemplateField>
  9.                 <ItemTemplate>
  10.                 <img src="<%#Eval("GoodsUrl")%>" onerror="this.src=this.src.replace('~/','')" width="300" />
  11.                 </ItemTemplate>
  12.             </asp:TemplateField>
  13.             <asp:BoundField DataField="GoodsName" HeaderText="主板名称" SortExpression="GoodsName" />
  14.             <asp:BoundField DataField="MarketPrice" HeaderText="销售价" SortExpression="MarketPrice" />
  15.             <asp:BoundField DataField="GoodsUnit" HeaderText="计量" SortExpression="GoodsUnit" />
  16.             <asp:BoundField DataField="PCIIDE" HeaderText="主芯片组" SortExpression="PCIIDE" />
  17.             <asp:BoundField DataField="Asic" HeaderText="集成芯片" SortExpression="Asic" />
  18.             <asp:BoundField DataField="Slot" HeaderText="CPU_插槽" SortExpression="Slot" />
  19.             <asp:BoundField DataField="Storagetype" HeaderText="内存类型" SortExpression="Storagetype" />
  20.             <asp:BoundField DataField="Frequency" HeaderText="总线频率" SortExpression="Frequency" />
  21.             <asp:BoundField DataField="Chip" HeaderText="芯片组描" SortExpression="Chip" />
  22.             <asp:BoundField DataField="ATX" HeaderText="主板板型" SortExpression="ATX" />
  23.             <asp:BoundField DataField="Picturechip" HeaderText="图片芯片" SortExpression="Picturechip" />
  24.             <asp:BoundField DataField="Cardchip" HeaderText="网卡芯片" SortExpression="Cardchip" />
  25.             <asp:BoundField DataField="GoodsBrand" HeaderText="品牌" SortExpression="GoodsBrand" />
  26.         </Fields>
  27.     </asp:DetailsView>
  28.        &nbsp;<asp:Button ID="Button1" runat="server" Text="添加到我的购物车" Width="227px" OnClick="Button1_Click" /><br />
  29.     
  30.         &nbsp;&nbsp;&nbsp; &nbsp;
  31.        <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/zzu.mdb"
  32.            SelectCommand="SELECT [GoodsName], [MarketPrice], [GoodsUnit], [PCIIDE], [Asic], [Slot], [Storagetype], [Frequency], [Chip], [ATX], [Picturechip], [Cardchip], [GoodsBrand] ,[GoodsUrl] FROM [mainboard]">
  33.        </asp:AccessDataSource>
  34.        
  35.     </asp:Content>