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




