mainboard.aspx
资源名称:WebSite1.rar [点击查看]
上传用户:vtryaojia
上传日期:2020-04-18
资源大小:1214k
文件大小:3k
源码类别:
SCSI/ASPI
开发平台:
Others
- <%@ Page Language="C#" MasterPageFile="~/MasterPage2.master"AutoEventWireup="true" CodeFile="mainboard.aspx.cs" Inherits="mainboard" %>
- <asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
- <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataSourceID="AccessDataSource1"
- Height="50px" Width="488px">
- <Fields>
- <asp:TemplateField>
- <ItemTemplate>
- <img src="<%#Eval("GoodsUrl")%>" onerror="this.src=this.src.replace('~/','')" width="300" />
- </ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="GoodsName" HeaderText="主板名称" SortExpression="GoodsName" />
- <asp:BoundField DataField="MarketPrice" HeaderText="销售价" SortExpression="MarketPrice" />
- <asp:BoundField DataField="GoodsUnit" HeaderText="计量" SortExpression="GoodsUnit" />
- <asp:BoundField DataField="PCIIDE" HeaderText="主芯片组" SortExpression="PCIIDE" />
- <asp:BoundField DataField="Asic" HeaderText="集成芯片" SortExpression="Asic" />
- <asp:BoundField DataField="Slot" HeaderText="CPU_插槽" SortExpression="Slot" />
- <asp:BoundField DataField="Storagetype" HeaderText="内存类型" SortExpression="Storagetype" />
- <asp:BoundField DataField="Frequency" HeaderText="总线频率" SortExpression="Frequency" />
- <asp:BoundField DataField="Chip" HeaderText="芯片组描" SortExpression="Chip" />
- <asp:BoundField DataField="ATX" HeaderText="主板板型" SortExpression="ATX" />
- <asp:BoundField DataField="Picturechip" HeaderText="图片芯片" SortExpression="Picturechip" />
- <asp:BoundField DataField="Cardchip" HeaderText="网卡芯片" SortExpression="Cardchip" />
- <asp:BoundField DataField="GoodsBrand" HeaderText="品牌" SortExpression="GoodsBrand" />
- </Fields>
- </asp:DetailsView>
- <asp:Button ID="Button1" runat="server" Text="添加到我的购物车" Width="227px" OnClick="Button1_Click" /><br />
-
- <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/zzu.mdb"
- SelectCommand="SELECT [GoodsName], [MarketPrice], [GoodsUnit], [PCIIDE], [Asic], [Slot], [Storagetype], [Frequency], [Chip], [ATX], [Picturechip], [Cardchip], [GoodsBrand] ,[GoodsUrl] FROM [mainboard]">
- </asp:AccessDataSource>
- </asp:Content>