storage.aspx
资源名称:WebSite1.rar [点击查看]
上传用户:vtryaojia
上传日期:2020-04-18
资源大小:1214k
文件大小:2k
源码类别:
SCSI/ASPI
开发平台:
Others
- <%@ Page Language="C#" MasterPageFile="~/MasterPage2.master" AutoEventWireup="true" CodeFile="storage.aspx.cs" Inherits="storage" Title="Untitled Page"Debug="false" %>
- <asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
- <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataSourceID="AccessDataSource1"
- Height="50px" Width="489px">
- <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="Type" HeaderText="内存类型" SortExpression="Type" />
- <asp:BoundField DataField="Content" HeaderText="内存容量" SortExpression="Content" />
- <asp:BoundField DataField="Workfrequency" HeaderText="工作频率" SortExpression="Workfrequency" />
- <asp:BoundField DataField="Interfacetype" HeaderText="接口类型" SortExpression="Interfacetype" />
- <asp:BoundField DataField="Pressure" HeaderText="电压(V)" SortExpression="Pressure" />
- <asp:BoundField DataField="GoodsBrand" HeaderText="品牌" SortExpression="GoodsBrand" />
- </Fields>
- </asp:DetailsView>
- <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="添加到我的购物车"
- Width="235px" /><br />
-
- <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/zzu.mdb"
- SelectCommand="SELECT [GoodsName], [MarketPrice], [GoodsUnit], [Type], [Content], [Workfrequency], [Interfacetype], [Pressure], [GoodsBrand], [GoodsUrl] FROM [storage]">
- </asp:AccessDataSource>
- </asp:Content>