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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page Language="C#"MasterPageFile="~/MasterPage2.master" AutoEventWireup="true" CodeFile="heatsink.aspx.cs" Inherits="heatsink" %>
  2.   
  3.    <asp:Content ID="Content2" 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")%>"   alt="" 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="Usearea" HeaderText="适用范围" SortExpression="Usearea" />
  17.             <asp:BoundField DataField="Manner" HeaderText="散热方式" SortExpression="Manner" />
  18.             <asp:BoundField DataField="Noise" HeaderText="噪音大小" SortExpression="Noise" />
  19.             <asp:BoundField DataField="Fan" HeaderText="风扇最高" SortExpression="Fan" />
  20.             <asp:BoundField DataField="Bearingtype" HeaderText="轴承类型" SortExpression="Bearingtype" />
  21.             <asp:BoundField DataField="Airvolume" HeaderText="最大风量" SortExpression="Airvolume" />
  22.             <asp:BoundField DataField="Piece" HeaderText="散热片" SortExpression="Piece" />
  23.             <asp:BoundField DataField="GoodsBrand" HeaderText="品牌" SortExpression="GoodsBrand" />
  24.         </Fields>
  25.     </asp:DetailsView>
  26.        &nbsp;&nbsp;<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="添加到我的购物车"
  27.            Width="166px" /><br />
  28.        <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/zzu.mdb"
  29.            SelectCommand="SELECT [GoodsName], [MarketPrice], [GoodsUnit], [Usearea], [Manner], [Noise], [Fan], [Bearingtype], [Airvolume], [Piece], [GoodsBrand], [GoodsUrl], [ClassID], [GoodsID] ,[GoodsUrl] FROM [heatsink]">
  30.        </asp:AccessDataSource>
  31.        
  32.     </asp:Content>