⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 displayproductcategory.aspx

📁 是一个很好的电子商务系统,是用C#语言开发的,能够完成网上购物的功能
💻 ASPX
字号:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="DisplayProductcategory.aspx.cs" Inherits="DisplayProductcategory" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table border="0" cellpadding="0" cellspacing="0" style="width: 420px; height: 96px">
        <tr>
            <td align="center" style="width: 337px; height: 19px; font-size: x-large; background-color: #9933ff;">
                ProductCategory</td>
        </tr>
        <tr>
            <td style="width: 337px">
                <asp:DataList ID="DListProductByCategory" runat="server" BackColor="#DEBA84" BorderColor="#DEBA84" BorderWidth="1px" CellPadding="3" BorderStyle="None" CellSpacing="2" GridLines="Both" OnItemCommand="DListProductByCategory_ItemCommand">
                    <ItemTemplate>
                        <table border="0" cellpadding="0" cellspacing="0" style="width: 401px">
                            <tr>
                                <td rowspan="4" style="width: 29px" valign="top">
                                    <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("ProductImage") %>' /></td>
                                <td style="height: 19px">
                                    &nbsp; &nbsp; &nbsp;
                                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("ProductID","~/DisplayProduct.aspx?PID={0}") %>'
                                        Text='<%# Eval("ProductName") %>'></asp:HyperLink></td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp; &nbsp; &nbsp;
                                    <asp:Label ID="Label3" runat="server" Text='<%# GetProductDescription(Eval("Description").ToString()) %>' Width="358px"></asp:Label></td>
                            </tr>
                            <tr>
                                <td style="width: 416px;">
                                    &nbsp; &nbsp; 
                                    <asp:Label ID="Label1" runat="server" Text="Price:" Width="51px" ForeColor="Red"></asp:Label><asp:Label
                                        ID="Label2" runat="server" Text='<%# Eval("UnitCost","{0:c}") %>' Width="117px" Font-Underline="True" ForeColor="Lime"></asp:Label></td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 416px">
                                    &nbsp;
                                    <asp:Button ID="btnCart" runat="server" Text="Add to cart" Width="110px" CommandArgument='<%# Eval("ProductID") %>' /></td>
                            </tr>
                        </table>
                    </ItemTemplate>
                    <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                    <SelectedItemStyle BackColor="#738A9C" ForeColor="White" Font-Bold="True" />
                    <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
                    <ItemStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                </asp:DataList></td>
        </tr>
    </table>
    <br />
</asp:Content>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -