productstopdatetimed.ascx

来自「电子商城源代码,包含项目工程文件! 数据库建表语句 具体功能包括电子购物车,」· ASCX 代码 · 共 50 行

ASCX
50
字号
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="ProductsTopDateTimed.ascx.cs" Inherits="EMall.UserControls.ProductsTopDateTimed" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<asp:datalist id="DataList1" GridLines="Horizontal" CellPadding="4" BackColor="White" BorderColor="#E3E3E3"
	DataKeyField="ProductID" BorderWidth="1px" Width="100%" runat="server" FooterStyle-BackColor="#E3E3E3"
	HeaderStyle-BackColor="#E3E3E3">
	<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#339966"></SelectedItemStyle>
	<HeaderTemplate>
		<TABLE id="Table5" cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
			<TR>
				<TD width="10"></TD>
				<TD><b><% = sMsg%>最新商品</b></TD>
			</TR>
		</TABLE>
	</HeaderTemplate>
	<AlternatingItemStyle BackColor="WhiteSmoke"></AlternatingItemStyle>
	<FooterTemplate>
		<a href="ProductsTop.aspx?OB=Clicks" alt="点击查看更多相关商品...">More...</a>
	</FooterTemplate>
	<ItemStyle ForeColor="#333333" BorderStyle="None" BackColor="White"></ItemStyle>
	<ItemTemplate>
		<TABLE cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
			<TR>
				<TD vAlign="top" width="82px"><A href='Product.aspx?ProductID=<%# DataBinder.Eval(Container.DataItem, "ProductID") %>' title=点击查看明细 target=P><IMG src='ProductImages/<%# DataBinder.Eval(Container.DataItem, "ProductImage") %>' border=0 width=75px height=75px></A></TD>
				<td>
					<b>
						<%# DataBinder.Eval(Container.DataItem, "ModelNumber") %>
					</b>
					<br>
					<%# DataBinder.Eval(Container.DataItem, "ModelName") %>
					<br>
					<FONT color="silver">
						<DEL>
							<%# DataBinder.Eval(Container.DataItem, "UnitCost", "{0:c}") %>
						</DEL>
					</FONT>
					<br>
					<FONT color="coral">
						<%# DataBinder.Eval(Container.DataItem, "Discount", "{0:c}") %>
					</FONT>
					<br>
					<FONT color="silver">
						<%# DataBinder.Eval(Container.DataItem, "Vendor") %>
					</FONT>&nbsp;&nbsp;<a href='<%# "AddToCart.aspx?ProductID=" + DataBinder.Eval(Container.DataItem, "ProductID") %>' target=A><img src="Images/ShoppingCart.gif" border="0" title="点击订单此商品"></a>
				</td>
			</TR>
		</TABLE>
	</ItemTemplate>
	<FooterStyle HorizontalAlign="Right" ForeColor="#333333" BackColor="White"></FooterStyle>
	<HeaderStyle Font-Bold="True" Height="26px" ForeColor="White"></HeaderStyle>
</asp:datalist><br>

⌨️ 快捷键说明

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