bafflebox.aspx
资源名称:WebSite1.rar [点击查看]
上传用户:vtryaojia
上传日期:2020-04-18
资源大小:1214k
文件大小:2k
源码类别:
SCSI/ASPI
开发平台:
Others
- <%@ Page Language="C#" MasterPageFile="~/MasterPage2.master"AutoEventWireup="true" CodeFile="bafflebox.aspx.cs" Inherits="bafflebox" %>
- <asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
- <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataSourceID="AccessDataSource1"
- Height="50px" Width="487px">
- <Fields>
- <asp:TemplateField >
- <ItemTemplate>
- <img src="<%#Eval("GoodsUrl")%>"alt=""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="System" HeaderText="音箱系统" SortExpression="System" />
- <asp:BoundField DataField="Ratingpower" HeaderText="额定功率" SortExpression="Ratingpower" />
- <asp:BoundField DataField="Material" HeaderText="音箱材质" SortExpression="Material" />
- <asp:BoundField DataField="Function" HeaderText="功能调节" SortExpression="Function" />
- <asp:BoundField DataField="Loudhailer" HeaderText="扬声器单" SortExpression="Loudhailer" />
- <asp:BoundField DataField="SNR" HeaderText="信噪比" SortExpression="SNR" />
- </Fields>
- </asp:DetailsView>
-
- <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="添加到我的购物车" Width="203px" />
- <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/zzu.mdb"
- SelectCommand="SELECT [GoodsName], [MarketPrice], [Goodsunit], [System], [Ratingpower], [GoodsUrl],[Material], [Function], [Loudhailer], [SNR] FROM [bafflebox]">
- </asp:AccessDataSource>
- </asp:Content>