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

📄 catalog.aspx

📁 一个很好的网上购物系统!进行了新的修改具有很多的功能!
💻 ASPX
字号:
<%@ Page Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true" CodeFile="Catalog.aspx.cs" Inherits="Catalog" Title="Product Catalog"%>
<%@ Register TagPrefix="uc1" TagName="CatalogList" Src="Modules/CatalogList.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h1><asp:Label ID="lblTitle" runat="server" Text="Label"></asp:Label></h1>
    
    <asp:DataList ID="DataList1" Runat="server" DataKeyField="ProductID" DataSourceID="ObjectDataSource1">
            <ItemTemplate>
                <table>
                    <tr>
                        <td>
                            <a href="product.aspx?id=<%# Eval("ProductID") %>" >
                                <img alt='Product Image - <%# Eval("Description") %>' src='images/productimages/<%#  Eval("ProductImage") %>' class="thumbimage">
                            </a>
                        </td>
                        <td>
                            <div class="plainbox">
		                        <a href="product.aspx?id=<%# Eval("ProductID") %>">
    		                
			                    [<%# Eval("ModelNumber") %>]
			                    <a href="product.aspx?id=<%# Eval("ProductID") %>"><%# Eval("ModelName") %></a>&nbsp; 
			                    </A>
			                    <%# GetPrice(Eval("UnitCost"),Eval("DiscountPercent"))%>
			                    <asp:Label id="lblProductID" runat="server" Visible="False" Text='<%# Eval("ProductID") %>'></asp:Label>  
			                    <br />
			                    <%# Eval("Description") %><br />
		                        <a href="product.aspx?id=<%# Eval("ProductID") %>">更多</a> <img alt="More Detail" src="images/morearrow.gif">

                            </div>
                        </td>
                    </tr>
                </table>

	                
		                
            </ItemTemplate>
        </asp:DataList>
        
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetProductsByCategory"
        TypeName="CatalogManager">
        <SelectParameters>
            <asp:QueryStringParameter DefaultValue="14" Name="categoryID" QueryStringField="cid"
                Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>

⌨️ 快捷键说明

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