温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:明日网上商城购物系统源码
当前文件:
MingriNetShop/User/index.aspx,打开代码结构图
MingriNetShop/User/index.aspx,打开代码结构图1<%@ Page Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="index" Title="User Page" %> 2
3
<asp:Content ID="Content1" ContentPlaceHolderID="FartherMain" Runat="Server" > 4
<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;" > 5
<tr align="left"> 6
<td align="left" style="width :560px;height :22px; vertical-align: top; text-align: left;" colspan="0" rowspan="0" background ="../Images/index/精品推荐.jpg" > 7
</td> 8
</tr> 9
<tr> 10
<td align="left" style ="width :560px; " background ="../Images/index/精品推荐下面部分.jpg"> 11
<asp:DataList ID="DLrefinement" DataKeyField ="GoodsID" runat="server" RepeatColumns="4" RepeatDirection="Horizontal" OnItemCommand="DLrefinement_ItemCommand"> 12
<ItemTemplate> 13
<table align="left" cellpadding=0 cellspacing=0 style =" width :135px; height:158px;" > 14
<tr align =center style =" width :135px; height:65px;" > 15
<td colspan="2" align="center" > 16
<asp:Image ID="imageRefine" runat="server" ImageUrl =<%#DataBinder.Eval(Container.DataItem,"GoodsUrl")%>/></td> 17
</tr> 18
<tr align =center valign =bottom style =" width :135px; height:11px; font-size: 9pt; font-family: 宋体;"> 19
<td colspan="2" align="center"> 20
<%#DataBinder.Eval(Container.DataItem, "GoodsName")%> 21
</td> 22
</tr> 23
<tr align =center valign =bottom style =" width :135px; height:11px; font-size: 9pt; font-family: 宋体;"> 24
<td align="center" > 25
市场价格</td> 26
<td align="left" > 27
<%#GetMKPStr(DataBinder.Eval(Container.DataItem, "MarketPrice").ToString())%>¥</td> 28
</tr > 29
<tr align =center valign =bottom style =" width :135px; height:11px;font-size: 9pt; font-family: 宋体;"> 30
<td align="center" > 31
会员价格</td> 32
<td align="left" > 33
<%#GetMBPStr(DataBinder.Eval(Container.DataItem, "MemberPrice").ToString())%>¥</td> 34
</tr> 35
<tr align =left valign =bottom style =" width :135px; height:11px;font-size: 9pt; font-family: 宋体;"> 36
<td colspan="2" align="center" > 37
<asp:LinkButton ID="lnkbtnClass" runat="server" CommandName="detailSee" >详细</asp:LinkButton> 38
<asp:LinkButton ID="lnkbtnBuy" runat="server" CommandName="buyGoods" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"GoodsWeight")+"|"+DataBinder.Eval(Container.DataItem,"MemberPrice") %>'>购买</asp:LinkButton> 39
</td> 40
</tr> 41
</table> 42
</ItemTemplate> 43
</asp:DataList> 44
45
46
</td> 47
</tr> 48
</table> 49
<table style="font-size: 9pt; font-family: 宋体;" cellpadding=0 cellspacing=0> 50
<tr> 51
<td align="left" style="width :560px; height :22px; vertical-align: top; text-align: left;" background ="../Images/index/热销商品.jpg"> 52
</td> 53
</tr> 54
<tr> 55
<td style ="width :560px; " background ="../Images/index/精品推荐下面部分.jpg" align="left"> 56
<asp:DataList ID="DLHot" runat="server" DataKeyField ="GoodsID" RepeatColumns="4" RepeatDirection="Horizontal" OnItemCommand="DLHot_ItemCommand"> 57
<ItemTemplate> 58
<table align="left" cellpadding=0 cellspacing=0 style =" width :135px; height:158px;" > 59
<tr align =center style =" width :135px; height:65px;font-size: 9pt; font-family: 宋体;"> 60
<td colspan="2"> <asp:Image ID="imageHot" runat="server" ImageUrl =<%#DataBinder.Eval(Container.DataItem,"GoodsUrl")%>/> 61
</td> 62
</tr> 63
<tr align =center valign =bottom style =" width :135px; height:11px;font-size: 9pt; font-family: 宋体;"> 64
<td colspan="2" align="center"> 65
<%#DataBinder.Eval(Container.DataItem, "GoodsName")%> 66
</td> 67
</tr> 68
<tr align =center valign =bottom style =" width :135px; height:11px;font-size: 9pt; font-family: 宋体;"> 69
<td align="center"> 70
市场价格</td> 71
<td align="left"> 72
<%#GetMKPStr(DataBinder.Eval(Container.DataItem, "MarketPrice").ToString())%>¥</td> 73
</tr> 74
<tr align =center valign =bottom style =" width :135px; height:11px;font-size: 9pt; font-family: 宋体;"> 75
<td align="center"> 76
会员价格</td> 77
<td align="left"> 78
<%#GetMBPStr(DataBinder.Eval(Container.DataItem, "MemberPrice").ToString())%>¥</td> 79
</tr> 80
<tr align =center valign =bottom style =" width :135px; height:11px;font-size: 9pt; font-family: 宋体;"> 81
<td colspan="2" align =center > 82
83
<asp:LinkButton ID="lnkbtnClass" runat="server" CommandName="detailSee" >详细</asp:LinkButton> 84
<asp:LinkButton ID="lnkbtnBuy" runat="server" CommandName="buyGoods" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"GoodsWeight")+"|"+DataBinder.Eval(Container.DataItem,"MemberPrice") %>'>购买</asp:LinkButton> 85
</td> 86
</tr> 87
</table> 88
</ItemTemplate> 89
</asp:DataList></td> 90
</tr> 91
</table> 92
<table style=" font-size:9pt; font-family: 宋体; vertical-align: top; text-align: left;"cellpadding=0 cellspacing=0> 93
<tr> 94
<td align="left" style ="width :560px; height :22px;" background ="../Images/index/特价商品.jpg"> 95
</td> 96
</tr> 97
<tr> 98
<td align="left" style ="width :560px; " background="../Images/index/产品展销---最底部.jpg" > 99
<asp:DataList ID="DLDiscount" runat="server" DataKeyField ="GoodsID" RepeatColumns="4" RepeatDirection="Horizontal" OnItemCommand="DLDiscount_ItemCommand"> 100
<ItemTemplate> 101
<table align="left" cellpadding=0 cellspacing=0 style =" width :135px; height:158px;" > 102
<tr align =center valign =bottom style =" width :135px; height:65px;font-size: 9pt; font-family: 宋体;" > 103
<td colspan="2"><asp:Image ID="imageDiscount" runat="server" ImageUrl =<%#DataBinder.Eval(Container.DataItem,"GoodsUrl")%>/> 104
</td> 105
</tr> 106
<tr align =center valign =bottom style =" width :135px; height:11px;font-size: 9pt; font-family: 宋体;"> 107
<td colspan="2" align="center"> 108
<%#DataBinder.Eval(Container.DataItem, "GoodsName")%> 109
</td> 110
</tr> 111
<tr align =center valign =bottom style =" width :135px; height:11px;font-size: 9pt; font-family: 宋体;"> 112
<td align="center"> 113
市场价格</td> 114
<td align="left"> 115
<%#GetMKPStr(DataBinder.Eval(Container.DataItem, "MarketPrice").ToString())%>¥</td> 116
</tr> 117
<tr align =center valign =bottom style =" width :135px; height:11px;font-size: 9pt; font-family: 宋体;"> 118
<td align="center"> 119
会员价格</td> 120
<td align="left"> 121
<%#GetMBPStr(DataBinder.Eval(Container.DataItem, "MemberPrice").ToString())%>¥</td> 122
</tr> 123
<tr align =center valign =bottom style =" width :135px; height:11px;font-size: 9pt; font-family: 宋体;"> 124
125
<td colspan="2" align="center"> 126
<asp:LinkButton ID="lnkbtnClass" runat="server" CommandName="detailSee" >详细</asp:LinkButton> 127
<asp:LinkButton ID="lnkbtnBuy" runat="server" CommandName="buyGoods" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"GoodsWeight")+"|"+DataBinder.Eval(Container.DataItem,"MemberPrice") %>'>购买</asp:LinkButton> 128
</td> 129
130
</tr> 131
</table> 132
</ItemTemplate> 133
</asp:DataList></td> 134
</tr> 135
</table> 136
137
</asp:Content> 138
139
140
141



