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

📄 index.aspx

📁 网上商城购物系统的源码及使用说明
💻 ASPX
字号:
<%@ Page Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="index" Title="User Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="FartherMain" Runat="Server" >
<table  cellpadding=0 cellspacing=0  style=" font-size: 9pt; font-family: 宋体;width :560px; vertical-align :top ; border-top-style: none; border-right-style: none; border-left-style: none; text-align: left; border-bottom-style: none;"  >
        <tr align="left">
            <td  align="left" style="width :560px;height :22px; vertical-align: top; text-align: left;" colspan="0" rowspan="0" background ="../Images/index/精品推荐.jpg" >
             </td>
        </tr>
        <tr>
            <td align="left" style ="width :560px; " background ="../Images/index/精品推荐下面部分.jpg">
                <asp:DataList ID="DLrefinement" DataKeyField ="GoodsID" runat="server" RepeatColumns="4" RepeatDirection="Horizontal"  OnItemCommand="DLrefinement_ItemCommand">
                    <ItemTemplate>
                        <table align="left" cellpadding=0 cellspacing=0 style =" width :135px; height:158px;" >
                            <tr align =center style =" width :135px; height:65px;" >
                                <td colspan="2" align="center" >
                                    <asp:Image ID="imageRefine" runat="server"  ImageUrl =<%#DataBinder.Eval(Container.DataItem,"GoodsUrl")%>/></td>
                            </tr>
                            <tr align =center valign =bottom style =" width :135px; height:11px; font-size: 9pt; font-family: 宋体;">
                                <td colspan="2" align="center">
                                <%#DataBinder.Eval(Container.DataItem, "GoodsName")%>
                                </td>
                            </tr>
                            <tr align =center valign =bottom style =" width :135px; height:11px; font-size: 9pt; font-family: 宋体;">
                                <td align="center" >
                                    市场价格</td>
                                <td align="left" >
                                    <%#GetMKPStr(DataBinder.Eval(Container.DataItem, "MarketPrice").ToString())%>¥</td>
                            </tr >
                            <tr align =center valign =bottom style =" width :135px; height:11px;font-size: 9pt; font-family: 宋体;">
                                <td align="center" >
                                    会员价格</td>
                                <td align="left" >
                                    <%#GetMBPStr(DataBinder.Eval(Container.DataItem, "MemberPrice").ToString())%>¥</td>
                            </tr>
                            <tr align =left valign =bottom  style =" width :135px; height:11px;font-size: 9pt; font-family: 宋体;">
                                <td colspan="2" align="center" >
                                    <asp:LinkButton ID="lnkbtnClass" runat="server" CommandName="detailSee" >详细</asp:LinkButton>
                                    <asp:LinkButton ID="lnkbtnBuy" runat="server" CommandName="buyGoods"  CommandArgument='<%#DataBinder.Eval(Container.DataItem,"GoodsWeight")+"|"+DataBinder.Eval(Container.DataItem,"MemberPrice") %>'>购买</asp:LinkButton>
                                  </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:DataList>
                    
              
            </td>
        </tr>
    </table>
    <table style="font-size: 9pt; font-family: 宋体;" cellpadding=0 cellspacing=0>
        <tr>
            <td align="left" style="width :560px; height :22px; vertical-align: top; text-align: left;" background ="../Images/index/热销商品.jpg">
                </td>
        </tr>
        <tr>
            <td style ="width :560px; " background ="../Images/index/精品推荐下面部分.jpg" align="left">
                <asp:DataList ID="DLHot" runat="server" DataKeyField ="GoodsID" RepeatColumns="4" RepeatDirection="Horizontal" OnItemCommand="DLHot_ItemCommand">
                    <ItemTemplate>
                        <table align="left" cellpadding=0 cellspacing=0 style =" width :135px; height:158px;" >
                            <tr align =center style =" width :135px; height:65px;font-size: 9pt; font-family: 宋体;">
                                <td colspan="2"> <asp:Image ID="imageHot" runat="server"  ImageUrl =<%#DataBinder.Eval(Container.DataItem,"GoodsUrl")%>/>
                                </td>
                            </tr>
                            <tr align =center valign =bottom  style =" width :135px; height:11px;font-size: 9pt; font-family: 宋体;">
                                <td colspan="2" align="center">
                                <%#DataBinder.Eval(Container.DataItem, "GoodsName")%>
                                </td>
                            </tr>
                            <tr align =center valign =bottom  style =" width :135px; height:11px;font-size: 9pt; font-family: 宋体;">
                                <td align="center">
                                    市场价格</td>
                                <td align="left">
                                    <%#GetMKPStr(DataBinder.Eval(Container.DataItem, "MarketPrice").ToString())%>¥</td>
                            </tr>
                            <tr align =center valign =bottom  style =" width :135px; height:11px;font-size: 9pt; font-family: 宋体;">
                                <td align="center">
                                    会员价格</td>
                                <td align="left">
                                    <%#GetMBPStr(DataBinder.Eval(Container.DataItem, "MemberPrice").ToString())%>¥</td>
                            </tr>
                            <tr align =center valign =bottom  style =" width :135px; height:11px;font-size: 9pt; font-family: 宋体;">
                                <td colspan="2" align =center >
                                   
                                    <asp:LinkButton ID="lnkbtnClass" runat="server" CommandName="detailSee" >详细</asp:LinkButton>
                                     <asp:LinkButton ID="lnkbtnBuy" runat="server" CommandName="buyGoods"  CommandArgument='<%#DataBinder.Eval(Container.DataItem,"GoodsWeight")+"|"+DataBinder.Eval(Container.DataItem,"MemberPrice") %>'>购买</asp:LinkButton>
                                  </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:DataList></td>
        </tr>
    </table>
     <table style=" font-size:9pt; font-family: 宋体; vertical-align: top; text-align: left;"cellpadding=0 cellspacing=0>
        <tr>
             <td align="left" style ="width :560px; height :22px;" background ="../Images/index/特价商品.jpg">
                </td>
        </tr>
        <tr>
            <td align="left" style ="width :560px; " background="../Images/index/产品展销---最底部.jpg" >
                <asp:DataList ID="DLDiscount" runat="server" DataKeyField ="GoodsID" RepeatColumns="4" RepeatDirection="Horizontal" OnItemCommand="DLDiscount_ItemCommand">
                    <ItemTemplate>
                        <table align="left" cellpadding=0 cellspacing=0 style =" width :135px; height:158px;" >
                            <tr align =center valign =bottom  style =" width :135px; height:65px;font-size: 9pt; font-family: 宋体;" >
                                <td colspan="2"><asp:Image ID="imageDiscount" runat="server"  ImageUrl =<%#DataBinder.Eval(Container.DataItem,"GoodsUrl")%>/>
                                </td>
                            </tr>
                            <tr align =center valign =bottom  style =" width :135px; height:11px;font-size: 9pt; font-family: 宋体;">
                                <td colspan="2" align="center">
                                <%#DataBinder.Eval(Container.DataItem, "GoodsName")%>
                                </td>
                            </tr>
                            <tr align =center valign =bottom  style =" width :135px; height:11px;font-size: 9pt; font-family: 宋体;">
                                <td align="center">
                                    市场价格</td>
                                <td align="left">
                                    <%#GetMKPStr(DataBinder.Eval(Container.DataItem, "MarketPrice").ToString())%>¥</td>
                            </tr>
                            <tr align =center valign =bottom  style =" width :135px; height:11px;font-size: 9pt; font-family: 宋体;">
                                <td align="center">
                                    会员价格</td>
                                <td align="left">
                                    <%#GetMBPStr(DataBinder.Eval(Container.DataItem, "MemberPrice").ToString())%>¥</td>
                            </tr>
                            <tr align =center valign =bottom  style =" width :135px; height:11px;font-size: 9pt; font-family: 宋体;">
                              
                                    <td colspan="2" align="center">
                                    <asp:LinkButton ID="lnkbtnClass" runat="server" CommandName="detailSee" >详细</asp:LinkButton>
                                    <asp:LinkButton ID="lnkbtnBuy" runat="server" CommandName="buyGoods"  CommandArgument='<%#DataBinder.Eval(Container.DataItem,"GoodsWeight")+"|"+DataBinder.Eval(Container.DataItem,"MemberPrice") %>'>购买</asp:LinkButton>
                                  </td>
                                   
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:DataList></td>
        </tr>
    </table>
   
</asp:Content>



⌨️ 快捷键说明

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