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

Email客户端

开发平台:

Visual C++

  1. <%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="ProcductPic.aspx.cs" Inherits="Manage_ProcductPic" Title="商品图片管理" %>
  2. <asp:Content ID="Content1" ContentPlaceHolderID="main" Runat="Server">
  3.     <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1" RepeatColumns="3" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2" GridLines="Both">
  4.         <ItemTemplate>
  5.             <table style="width: 231px">
  6.                 <tr>
  7.                     <td style="width: 231px">
  8.                         商品名字:<asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# Eval("GoodsID") %>'
  9.                             Text='<%# Eval("GoodsName") %>' OnCommand="LinkButton1_Command" ToolTip="单击修改图片信息"></asp:LinkButton></td>
  10.                 </tr>
  11.                 <tr>
  12.                     <td style="width: 100px">
  13.                         链接图片:<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl='<%# "../Image/"+Eval("GoodsLnkLogo") %>' CommandArgument='<%# Eval("GoodsID") %>' OnCommand="ImageButton1_Command" /></td>
  14.                 </tr>
  15.                 <tr>
  16.                     <td style="width: 100px">
  17.                         商品图片:<asp:ImageButton ID="ImageButton2" runat="server" ImageUrl='<%# "../Image/"+Eval("GoodsBrand") %>' CommandArgument='<%# Eval("GoodsID") %>' OnCommand="ImageButton2_Command" /></td>
  18.                 </tr>
  19.                 <tr>
  20.                     <td style="width: 100px">
  21.                         商品大图:<asp:ImageButton ID="ImageButton3" runat="server" ImageUrl='<%# "../Image/"+Eval("GoodsPic") %>' CommandArgument='<%# Eval("GoodsID") %>' OnCommand="ImageButton3_Command" /></td>
  22.                 </tr>
  23.             </table>
  24.         </ItemTemplate>
  25.         <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
  26.         <ItemStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
  27.         <SelectedItemStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
  28.         <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
  29.     </asp:DataList>
  30.     <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:TZroomConnectionString %>"
  31.         SelectCommand="SELECT [GoodsID], [GoodsPic], [GoodsBrand], [GoodsLnkLogo], [GoodsName] FROM [tb_GoodsInfo]">
  32.     </asp:SqlDataSource>
  33.     链接图片<input id="myFile" runat="server" style="width: 296px" type="file" />
  34.     <asp:Button ID="linkLogoup" runat="server" Text="上传" OnClick="linkLogoup_Click" /><br />
  35.     商品图片<input id="myFile1" runat="server" style="width: 296px" type="file" />
  36.     <asp:Button ID="Brandupbtn" runat="server" Text="上传" OnClick="Brandupbtn_Click" /><br />
  37.     商品大图<input id="myFile2" runat="server" style="width: 296px" type="file" />
  38.     <asp:Button ID="picupbtn" runat="server" Text="上传" OnClick="picupbtn_Click" />
  39. </asp:Content>