productdetailcontrol.ascx
来自「C#语言制作asp.net网上商店的」· ASCX 代码 · 共 115 行
ASCX
115 行
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ProductDetailControl.ascx.vb"
Inherits="Shop_Product_Controls_ProductDetailControl" %>
<%@ Register Src="ProductSpcialOfferControl.ascx" TagName="ProductSpcialOfferControl"
TagPrefix="uc3" %>
<%@ Register Src="ProductAttributeControl.ascx" TagName="ProductAttributeControl"
TagPrefix="uc2" %>
<%@ Register Assembly="Xpdt.Web.UI.Ratings" Namespace="Xpdt.Web.UI.WebControls" TagPrefix="Xpdt" %>
<%@ Register Src="ProductDescriptionControl.ascx" TagName="ProductDescriptionControl"
TagPrefix="uc1" %>
<link rel="stylesheet" type="text/css" href='<%=Page.ResolveUrl("~/JS/thickbox/thickbox.css")%>' />
<script type="text/javascript" src='<%=Page.ResolveUrl("~/JS/thickbox/jquery.js")%>'></script>
<script type="text/javascript" src='<%=Page.ResolveUrl("~/JS/thickbox/thickbox.js")%>'></script>
<!-- product_info start-->
<div id="product-pic">
<div id="productimage">
<img id="imgProductImage" alt='<%=objProduct.ProductName %>' src='<%=Page.ResolveUrl(String.Format("~/IHttpHandler/ImageHandler.ashx?Imagepath=~/{0}&Size={1}",NormalImagePath, "200,200"))%>' />
</div>
<div id="fangda">
<a id="XXX" href='<%=Page.ResolveUrl(String.Format("~/{0}", NormalImagePath))%>'
title="<%=objProduct.ProductName%>" class="thickbox">
<asp:Image ID="imgFangDa" runat="server" ImageUrl="~/Images/shop/fangda.gif" /></a></div>
<div id="multiple">
<asp:DataList ID="dlMultipleView" runat="server" SkinID="MultipleView">
<ItemTemplate>
<a href='<%#Page.ResolveUrl(String.Format("~/{0}", Eval("ImagePath")))%>' title=""
class="thickbox" rel="gallery-plants">
<img border="0" src='<%#Page.ResolveUrl(String.Format("~/IHttpHandler/ImageHandler.ashx?Imagepath=~/{0}&Size={1}", Eval("ImagePath"), "40,40"))%>'
alt="<%#Eval("ImagePath")%>" onmouseover="imgProductImage.src='<%#Page.ResolveUrl(String.Format("~/IHttpHandler/ImageHandler.ashx?Imagepath=~/{0}&Size={1}", Eval("ImagePath"), "200,200"))%>';XXX.href='<%#Page.ResolveUrl(String.Format("~/{0}", Eval("ImagePath")))%>'" /></a>
</ItemTemplate>
</asp:DataList></div>
</div>
<div id="product-info">
<div id="product-title">
<asp:Label ID="lbProductName" runat="server"></asp:Label>
</div>
<div class="code">
<asp:Label ID="lbProductCode" runat="server" SkinID="ProductPrice"></asp:Label>
</div>
<div class ="hr"></div>
<div id="buy-product">
<div class="product-box">
<asp:MultiView ID="mvRating" runat="server">
<asp:View ID="vHas" runat="server">
<div align="left">
综合评论
<Xpdt:Rater ID="Rater1" runat="server" DisplayOnly="True"></Xpdt:Rater>
<asp:Literal ID="rating" runat="server"></asp:Literal><br />
<asp:Literal ID="Recommend" runat="server"></asp:Literal><br />
<asp:Literal ID="ReviewLinkHas" runat="server"></asp:Literal><br />
<asp:Literal ID="ReadeReview" runat="server"></asp:Literal>
</div>
</asp:View>
<asp:View ID="vNO" runat="server">
<div align="left">
<asp:Literal ID="ReviewLinkNo" runat="server"></asp:Literal></div>
</asp:View>
</asp:MultiView>
<div>
<asp:ImageButton ID="btnAddToWishList" runat="server" ImageUrl="~/Images/Shop/addToWish.gif"
ToolTip="放到收藏夹" />
<asp:ImageButton ID="btnEmailToFriedn" runat="server" ImageUrl="~/Images/Shop/emailToFriend.gif"
ToolTip="推荐给朋友" /></div>
</div>
<div class ="blankbox"></div>
<uc3:ProductSpcialOfferControl ID="ProductSpcialOfferControl1" runat="server" />
</div>
<div id="info">
<div class ="linebox"></div>
<div id="listprice">
<asp:Label ID="lbListPriceCaption" runat="server"></asp:Label><span class="price">
<asp:Label ID="lbListPrice" runat="server"> </asp:Label></span></div>
<div class ="linebox"></div>
<div id="nsfPrice">
<asp:Label ID="lbPriceCaption" runat="server"></asp:Label>
<span class="price">
<asp:Label ID="lbPrice" runat="server" SkinID="ProductPrice"> </asp:Label></span></div><div class ="linebox"></div>
<div id="qty">
<asp:Label ID="lbQty" runat="server" Text="数量:" Width="50px"></asp:Label>
<asp:TextBox ID="txtQty" runat="server" Text="1" Width="35"></asp:TextBox></div>
<div id="product-option">
<uc2:ProductAttributeControl ID="ProductAttributeControl1" runat="server"></uc2:ProductAttributeControl>
</div>
<div class ="blankbox"> </div>
<div id="buy-button">
<asp:ImageButton ID="btnAddToCart" runat="server" ImageUrl="~/Images/Shop/addToCart.gif"
ToolTip="放入购物车" /></div>
</div>
</div>
<asp:HiddenField ID="hfImagePath" runat="server" />
<asp:HiddenField ID="hfProductID" runat="server" />
<asp:HiddenField ID="hfPrice" runat="server" />
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?