📄 leftnavtop2level.ascx
字号:
<%@ Import Namespace="System.Data" %>
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="LeftNavTop2Level.ascx.cs" Inherits="XpShop.WebUI.Modules.LeftNavTop2Level" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="template/green/images/25.gif" width=182 height=32></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="0" background="template/green/images/23.gif">
<tr valign="top">
<td class="mm">
<table width="100%">
<asp:Repeater Runat="server" ID="rptTopCategory">
<ItemTemplate>
<tr>
<td align="center"><span class="tt2">- - -<b><a href='List.aspx?CatID=<%# DataBinder.Eval(Container.DataItem,"CategoryID") %>'><font color="#277FC3"><%# DataBinder.Eval(Container.DataItem,"Name")%></font></a></b>- - -</span></td>
</tr>
<tr>
<td class="hr">
</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%"></AlternatingItemStyle>
<ItemTemplate>
<a href='List.aspx?CatID=<%# DataBinder.Eval(Container.DataItem,"CategoryID") %>'><%# DataBinder.Eval(Container.DataItem,"Name")%></a> |<td></td>
</ItemTemplate>
<AlternatingItemTemplate>
<a href='List.aspx?CatID=<%# DataBinder.Eval(Container.DataItem,"CategoryID") %>'><%# DataBinder.Eval(Container.DataItem,"Name")%></a>
</AlternatingItemTemplate>
</asp:DataList>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
</td>
</TR>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -