leftnavtop2level.ascx

来自「网奇.NET网络商城ACCESS单店商业版特点: 1. 无任何功能限制 」· ASCX 代码 · 共 58 行

ASCX
58
字号
<%@ Import Namespace="System.Data" %>
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="LeftNavTop2Level.ascx.cs" Inherits="wqshop.Modules.LeftNavTop2Level" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<div class="lframe">
						<table align="center" width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td class="tl"></td>
								<td class="tml"><div style=" margin-top:5px"><span class="tt"><%=GetResourceString("LeftNavigation")%></span></div></td>
								<td class="tm"></td>
								<td class="tmr"></td>
								<td class="tr"></td>
							</tr>
						</table>
	<table width="100%" cellspacing="0" cellpadding="0">
		<tr>
			<td class="ml"></td>
			<td class="mm">
				<table width="100%"><br />

					<asp:Repeater Runat="server" ID="rptTopCategory">
						<ItemTemplate>
							<tr>
								<td align="center"><span class="tt2">- - -<b><a href='<%if(config.html==""){%>List.aspx?CatID=<%# DataBinder.Eval(Container.DataItem,"CategoryID") %><%}else{%>categorys-<%# DataBinder.Eval(Container.DataItem,"CategoryID")%>.<%=config.html%><%}%>'><%# DataBinder.Eval(Container.DataItem,"Name")%></a></b>- - -</span></td>
							</tr>
							<tr>
								<td style=" height:7px">
							</tr>
							<tr>
								<td align="left">

									<asp:DataList ID="dlSubCategory" Runat="server" RepeatColumns="2" HorizontalAlign="Left" RepeatDirection="Horizontal" Width="100%" ItemStyle-Width="50%" DataSource='<%# GetSubCategory(DataBinder.Eval(Container.DataItem,"CategoryID").ToString())%>'>
										<ItemStyle HorizontalAlign="Right" Width="50%"></ItemStyle>
										<AlternatingItemStyle HorizontalAlign="Left" Width="50%" Height="20"></AlternatingItemStyle>
										<ItemTemplate>
											<a href='<%if(config.html==""){%>List.aspx?CatID=<%# DataBinder.Eval(Container.DataItem,"CategoryID") %><%}else{%>categorys-<%# DataBinder.Eval(Container.DataItem,"CategoryID")%>.<%=config.html%><%}%>'><%# DataBinder.Eval(Container.DataItem,"Name")%></a>&nbsp;|
										</ItemTemplate>
										<AlternatingItemTemplate>
											&nbsp;<a href='<%if(config.html==""){%>List.aspx?CatID=<%# DataBinder.Eval(Container.DataItem,"CategoryID") %><%}else{%>categorys-<%# DataBinder.Eval(Container.DataItem,"CategoryID")%>.<%=config.html%><%}%>'><%# DataBinder.Eval(Container.DataItem,"Name")%></a>
										</AlternatingItemTemplate>
									</asp:DataList>

								</td>
							</tr>
						</ItemTemplate>
					</asp:Repeater>
				</table>
			<br /></td>
			<td class="mr"></td>
		</TR>
	</table>
	<table width="100%" cellspacing="0" cellpadding="0" >
		<tr>
			<td class="bl"></td>
			<td class="bm">&nbsp;</td>
			<td class="br"></td>
		</tr>
	</table>
</div>

⌨️ 快捷键说明

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