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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page Language="C#" MasterPageFile="~/MasterPage2.master"AutoEventWireup="true" CodeFile="bafflebox.aspx.cs" Inherits="bafflebox" %>
  2.   <asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
  3.       
  4.     <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataSourceID="AccessDataSource1"
  5.         Height="50px" Width="487px">
  6.          
  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="System" HeaderText="音箱系统" SortExpression="System" />
  17.             <asp:BoundField DataField="Ratingpower" HeaderText="额定功率" SortExpression="Ratingpower" />
  18.            <asp:BoundField DataField="Material" HeaderText="音箱材质" SortExpression="Material" />
  19.             <asp:BoundField DataField="Function" HeaderText="功能调节" SortExpression="Function" />
  20.             <asp:BoundField DataField="Loudhailer" HeaderText="扬声器单" SortExpression="Loudhailer" />
  21.             <asp:BoundField DataField="SNR" HeaderText="信噪比" SortExpression="SNR" />
  22.         </Fields>
  23.        
  24.     </asp:DetailsView>
  25.       
  26.         &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
  27.       <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="添加到我的购物车" Width="203px" />
  28.       <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/zzu.mdb"
  29.           SelectCommand="SELECT [GoodsName], [MarketPrice], [Goodsunit], [System], [Ratingpower], [GoodsUrl],[Material], [Function], [Loudhailer], [SNR] FROM [bafflebox]">
  30.       </asp:AccessDataSource>
  31.   </asp:Content>