Quản lý website bán quần áo trực tuyến ASP.net
6.906 lượt xem;
1 <%@ Page Language="C#" MasterPageFile="~/UserControl/NguoiDung.master" AutoEventWireup="true" CodeFile="Aophongnam.aspx.cs" Inherits="GiaoDien_Aophongnam" %>
2
3 <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
4 <div id="khung-giua">
5 <div class="slideshow">
6 <img src="../Image/AnhQC/slide1.jpg" alt="anhQC" title="1" />
7 <img src="../Image/AnhQC/slide2.jpg" alt="anhQC" title="2"/>
8 <img src="../Image/AnhQC/slide3.jpg" alt="anhQC" title="3"/>
9 <img src="../Image/AnhQC/slide4.jpg" alt="anhQC" title="4"/>
10 <img src="../Image/AnhQC/slide5.jpg" alt="anhQC" title="5"/>
11 </div>
12 <div id="sp-moi">
13 <div class="title-giua">
14 Áo phông nam
15 </div>
16 <div style="float:left; margin-left:10px">
17 <asp:DataList ID="dlAophongnam" runat="server" RepeatColumns="4"
18 RepeatDirection="Horizontal" Width="551px"
19 onitemcommand="dlAophongnam_ItemCommand">
20 <ItemTemplate>
21 <table>
22 <tr style="text-align: center; color: #1500FF; font-weight: bold; font-size: 15px">
23 <td style="height: 35px">
24 <asp:Label runat="server" ID="lbTenSP" Text='<%#Eval("ProductName") %>'></asp:Label>
25 </td>
26 </tr>
27 <tr style="text-align: center">
28 <td>
29 <a href="#">
30 <asp:HyperLink ID="hp1" runat="server" ImageUrl='<%#"~/Image/DoNu/"+Eval("Images") %>'
31 Width="120px" Height="120px"
32 NavigateUrl='<%# "ThongTinChiTietSP.aspx?ProductID="+Eval("ProductID") %>'>Hình ảnh</asp:HyperLink>
33
34 </td>
35 </tr>
36 <tr style="text-align: center; color: black; font-weight: bold; font-size: 13px;
37 height: 20px">
38 <td>
39 <asp:Label ID="lbMaSP" runat="server" Text='<%#Eval("ProductID")%>'></asp:Label>
40 </td>
41 </tr>
42 <tr style="text-align: center; color: black; font-weight: bold; font-size: 13px;
43 height: 20px">
44 <td>
45 <asp:Label ID="lbGia" runat="server" Text='<%#Eval("Price") %>'></asp:Label>
46 </td>
47 </tr>
48 <tr style="text-align: center">
49 <td>
50 <asp:ImageButton ID="imbAddCart" runat="server" ImageUrl="~/Image/Icon/button_red_add_to_cart.jpeg"
51 CommandName="Them" />
52 </td>
53 </tr>
54 </table>
55 </ItemTemplate>
56 </asp:DataList>
57 </div>
58 </div>
59 </div>
60 </asp:Content>
2
3 <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
4 <div id="khung-giua">
5 <div class="slideshow">
6 <img src="../Image/AnhQC/slide1.jpg" alt="anhQC" title="1" />
7 <img src="../Image/AnhQC/slide2.jpg" alt="anhQC" title="2"/>
8 <img src="../Image/AnhQC/slide3.jpg" alt="anhQC" title="3"/>
9 <img src="../Image/AnhQC/slide4.jpg" alt="anhQC" title="4"/>
10 <img src="../Image/AnhQC/slide5.jpg" alt="anhQC" title="5"/>
11 </div>
12 <div id="sp-moi">
13 <div class="title-giua">
14 Áo phông nam
15 </div>
16 <div style="float:left; margin-left:10px">
17 <asp:DataList ID="dlAophongnam" runat="server" RepeatColumns="4"
18 RepeatDirection="Horizontal" Width="551px"
19 onitemcommand="dlAophongnam_ItemCommand">
20 <ItemTemplate>
21 <table>
22 <tr style="text-align: center; color: #1500FF; font-weight: bold; font-size: 15px">
23 <td style="height: 35px">
24 <asp:Label runat="server" ID="lbTenSP" Text='<%#Eval("ProductName") %>'></asp:Label>
25 </td>
26 </tr>
27 <tr style="text-align: center">
28 <td>
29 <a href="#">
30 <asp:HyperLink ID="hp1" runat="server" ImageUrl='<%#"~/Image/DoNu/"+Eval("Images") %>'
31 Width="120px" Height="120px"
32 NavigateUrl='<%# "ThongTinChiTietSP.aspx?ProductID="+Eval("ProductID") %>'>Hình ảnh</asp:HyperLink>
33
34 </td>
35 </tr>
36 <tr style="text-align: center; color: black; font-weight: bold; font-size: 13px;
37 height: 20px">
38 <td>
39 <asp:Label ID="lbMaSP" runat="server" Text='<%#Eval("ProductID")%>'></asp:Label>
40 </td>
41 </tr>
42 <tr style="text-align: center; color: black; font-weight: bold; font-size: 13px;
43 height: 20px">
44 <td>
45 <asp:Label ID="lbGia" runat="server" Text='<%#Eval("Price") %>'></asp:Label>
46 </td>
47 </tr>
48 <tr style="text-align: center">
49 <td>
50 <asp:ImageButton ID="imbAddCart" runat="server" ImageUrl="~/Image/Icon/button_red_add_to_cart.jpeg"
51 CommandName="Them" />
52 </td>
53 </tr>
54 </table>
55 </ItemTemplate>
56 </asp:DataList>
57 </div>
58 </div>
59 </div>
60 </asp:Content>