power.aspx
资源名称:WebSite1.rar [点击查看]
上传用户:vtryaojia
上传日期:2020-04-18
资源大小:1214k
文件大小:2k
源码类别:
SCSI/ASPI
开发平台:
Others
- <%@ Page Language="C#" MasterPageFile="~/MasterPage2.master" AutoEventWireup="true" CodeFile="power.aspx.cs" Inherits="power" Title="Untitled Page" %>
- <asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
- <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataSourceID="AccessDataSource1"
- Height="50px" Width="485px">
- <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="Edition" HeaderText="电源版本:" SortExpression="Edition" />
- <asp:BoundField DataField="Ratingpower" HeaderText="额定功率:" SortExpression="Ratingpower" />
- <asp:BoundField DataField="Safeguard" HeaderText="保护功能:" SortExpression="Safeguard" />
- <asp:BoundField DataField="Usearea" HeaderText="适用范围:" SortExpression="Usearea" />
- <asp:BoundField DataField="Interfacedescription" HeaderText="接口描述:"
- SortExpression="Interfacedescription" />
- <asp:BoundField DataField="Output" HeaderText="+12V输出:" SortExpression="Output" />
- <asp:BoundField DataField="Output2" HeaderText="+5V输出:" SortExpression="Output2" />
- <asp:BoundField DataField="GoodsBrand" HeaderText="品牌:" SortExpression="GoodsBrand" />
- </Fields>
- </asp:DetailsView>
- <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="添加到我的购物车"
- Width="270px" /><br />
-
- <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/zzu.mdb"
- SelectCommand="SELECT [GoodsName], [MarketPrice], [GoodsUnit], [Edition], [Ratingpower], [Safeguard], [Usearea], [Interfacedescription], [Output], [Output2], [GoodsBrand], [GoodsID], [ClassID], [GoodsUrl] FROM [power]">
- </asp:AccessDataSource>
- </asp:Content>