box.aspx
资源名称:WebSite1.rar [点击查看]
上传用户:vtryaojia
上传日期:2020-04-18
资源大小:1214k
文件大小:2k
源码类别:
SCSI/ASPI
开发平台:
Others
- <%@ Page Language="C#" MasterPageFile="~/MasterPage2.master"AutoEventWireup="true" CodeFile="box.aspx.cs" Inherits="box" %>
- <script runat="server">
- protected void Page_Load(object sender, EventArgs e)
- {
- }
- </script>
- <asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
-
- <asp:DetailsView ID="DetailsView1" runat="server" DataSourceID="AccessDataSource1"
- Height="50px" Width="487px" AutoGenerateRows="False" DataKeyNames="GoodsID">
- <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="Structure" HeaderText="机箱结构" SortExpression="Structure" />
- <asp:BoundField DataField="boxinterface" HeaderText="机箱接口" SortExpression="boxinterface" />
- <asp:BoundField DataField="Manner" HeaderText="机箱样式" SortExpression="Manner" />
- <asp:BoundField DataField="Size" HeaderText="机箱尺寸" SortExpression="Size" />
- <asp:BoundField DataField="GoodsBrand" HeaderText="品牌" SortExpression="GoodsBrand" />
- </Fields>
- </asp:DetailsView>
- <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/zzu.mdb"
- SelectCommand="SELECT [GoodsName], [MarketPrice], [GoodsUnit], [Structure], [boxinterface], [Manner], [Size], [GoodsBrand], [GoodsID], [ClassID],[GoodsUrl] FROM [box]">
- </asp:AccessDataSource>
- <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="添加到我的购物车" Width="210px" />
-
- </asp:Content>