search.aspx

来自「是一个很好的电子商务系统,是用C#语言开发的,能够完成网上购物的功能」· ASPX 代码 · 共 44 行

ASPX
44
字号
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Search.aspx.cs" Inherits="Search" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table border="0" cellpadding="0" cellspacing="0" style="width: 537px">
        <tr>
            <td align="center">
                <asp:Label ID="LabelMsg" runat="server" Font-Bold="True" Font-Italic="True" Font-Names="方正姚体"
                    Font-Size="35px" Font-Underline="True" ForeColor="#00C000" Text="Label" Width="575px"></asp:Label></td>
        </tr>
    </table>
    <asp:DataList ID="DListSearch" runat="server" Width="535px" OnItemCommand="DListSearch_ItemCommand">
        <ItemTemplate>
            <table border="0" cellpadding="0" cellspacing="0" style="width: 495px">
                <tr>
                    <td rowspan="4" style="width: 38px">
                        <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("ProductImage") %>' /></td>
                    <td style="height: 19px">
                        &nbsp; &nbsp; &nbsp; &nbsp;
                        <asp:HyperLink ID="HyperLink1" runat="server" ForeColor="#C0C000" NavigateUrl='<%# Eval("ProductID","~/DisplayProduct.aspx?PID={0}") %>'
                            Text='<%# Eval("ProductName") %>' Width="331px"></asp:HyperLink></td>
                </tr>
                <tr>
                    <td>
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
                        <asp:Label ID="Label1" runat="server" Text='<%# GetProductDescription(Eval("Description").ToString()) %>'
                            Width="391px"></asp:Label></td>
                </tr>
                <tr>
                    <td>
                        &nbsp; &nbsp; &nbsp; &nbsp;
                        <asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Italic="False" ForeColor="Red"
                            Text="Price" Width="61px"></asp:Label>
                        <asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Italic="True" Font-Underline="True"
                            ForeColor="#00C000" Text='<%# Eval("UnitCost","{0:c}") %>' Width="83px"></asp:Label></td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Button ID="Button1" runat="server" Text="Add to Cart" CommandArgument='<%# Eval("ProductID") %>' /></td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:DataList><br />
</asp:Content>

⌨️ 快捷键说明

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