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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page Language="C#" MasterPageFile="~/MasterPage2.master" AutoEventWireup="true" CodeFile="GoodsList9.aspx.cs" Inherits="GoodsList9" Title="Untitled Page" %>
  2. <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  3.     <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="AccessDataSource1" AllowPaging="True" PageSize="4" Width="497px">
  4.         <Columns>
  5.             <asp:TemplateField><ItemTemplate>
  6.             <table cellspacing ="2" cellpadding ="1">
  7.             <tr>
  8.             <td>
  9.             <img src="<%#Eval("GoodsUrl") %>" onerror="this.src=this.src.replace('~/','')" width="200" height ="150" /></td>
  10.             <td>
  11.             商品名称:
  12.             <asp:Label ID="GoodsNameLabel" runat="server" Text='<%# Eval("GoodsName") %>'></asp:Label><br />
  13.             品牌:
  14.             <asp:Label ID="GoodsBrandLabel" runat="server" Text='<%# Eval("GoodsBrand") %>'></asp:Label><br />
  15.             价格:
  16.             <asp:Label ID="MarketPriceLabel" runat="server" Text='<%# Eval("MarketPrice") %>'></asp:Label><br />
  17.             数量:
  18.             <asp:Label ID="GoodsUnitLabel" runat="server" Text='<%# Eval("GoodsUnit") %>'></asp:Label><br />
  19.            主芯片组:
  20.             <asp:Label ID="EditionLabel" runat="server" Text='<%# Eval("Edition") %>'></asp:Label><br />
  21.             
  22.             CPU_插槽:
  23.             <asp:Label ID="UseareaLabel" runat="server" Text='<%# Eval("Usearea") %>'></asp:Label><br />
  24.             内存类型:
  25.             <asp:Label ID="InterfacedescriptionLabel" runat="server" Text='<%# Eval("Interfacedescription") %>'></asp:Label><br />
  26.            总线频率:
  27.             <asp:Label ID="OutputLabel" runat="server" Text='<%# Eval("Output") %>'></asp:Label><br />
  28.            
  29.           
  30.             
  31.              <a href="power.aspx?GoodsID=<%# Eval("GoodsID")%>"target="_blank">详细信息</a>
  32.              </td>
  33.              </tr>
  34.              </table>
  35.             </ItemTemplate></asp:TemplateField>
  36.             
  37.         </Columns>
  38.         
  39.     </asp:GridView>   
  40.     <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/zzu.mdb"
  41.         SelectCommand="SELECT [GoodsUrl], [GoodsBrand],[GoodsName], [MarketPrice], [GoodsUnit], [Edition],[Ratingpower],[Usearea],[Interfacedescription],[Output],[Output2],[Safeguard],[GoodsID],[ClassID] FROM [power]">
  42.     </asp:AccessDataSource>
  43. </asp:Content>