ProductsList.aspx
上传用户:shjujing
上传日期:2022-07-28
资源大小:11244k
文件大小:2k
源码类别:

Email客户端

开发平台:

Visual C++

  1. <%@ Page Language="C#" MasterPageFile="~/AppMaster.master" AutoEventWireup="true" CodeFile="ProductsList.aspx.cs" Inherits="ProductsList" Title="商品信息" %>
  2. <asp:Content ID="Content2" ContentPlaceHolderID="phMain" Runat="Server">
  3.     <asp:DataList ID="DLrefinement" runat="server" DataKeyField="GoodsID" DataSourceID="SqlDataSource1" OnItemCommand="DLrefinement_ItemCommand1">
  4.         <ItemTemplate>
  5.             <asp:Image ID="Image1" runat="server" ForeColor="Blue" ImageUrl='<%# "~/Image/"+Eval("GoodsBrand") %>' /><br />
  6.             <asp:Label ID="Label1" runat="server" ForeColor="Blue" Text='<%# Eval("caption") %>'></asp:Label><br />
  7.             <asp:Image ID="Image2" runat="server" ImageUrl='<%# "~/Image/"+Eval("GoodsPic") %>' /><br />
  8.             <asp:Label ID="Label2" runat="server" Font-Size="X-Large" Text='<%# Eval("GoodsName") %>'></asp:Label><br />
  9.             <asp:TextBox ID="TextBox1" runat="server" Height="200px" Text='<%# Eval("GoodsDescription") %>'
  10.                 TextMode="MultiLine" Width="450px"></asp:TextBox><br /><br />
  11.             市场价:<asp:Label ID="Label3" runat="server" Text='<%# Eval("MarketPrice") %>'></asp:Label>¥<br />
  12.             会员价:<asp:Label ID="Label4" runat="server" Text='<%# Eval("MemberPrice") %>'></asp:Label>¥<br /><br />
  13.             <asp:Button ID="Button1" runat="server" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"GoodsWeight")+"|"+DataBinder.Eval(Container.DataItem,"MemberPrice") %>'
  14.                 CommandName="buyGoods" Text="添加到购物车 " /> 
  15.           <asp:HyperLink ID="HyperLink1" NavigateUrl="~/produce.aspx" runat="server">查看其它商品</asp:HyperLink><br />
  16.         </ItemTemplate>
  17.     </asp:DataList>
  18.     <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
  19.         ConnectionString="<%$ ConnectionStrings:TZroomConnectionString %>"
  20.         SelectCommand="SELECT * FROM [tb_GoodsInfo] WHERE ([GoodsID] = @GoodsID)">
  21.         <SelectParameters>
  22.             <asp:QueryStringParameter DefaultValue="1" Name="GoodsID" QueryStringField="id" Type="Int16" />
  23.         </SelectParameters>
  24.     </asp:SqlDataSource>
  25. </asp:Content>