📄 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"%>
<div class='lframe'>
<table width="95%" cellspacing="0" cellpadding="0">
<tr>
<td class="td.tm">
<img src=Template/wangqi/Images/spfl.gif alt=商品分类 width="198" height="30" border=0>
</td>
<td class="tr"></td>
</tr>
</table>
<table width="95%" cellspacing="0" cellpadding="0">
<tr>
<td class="ml"></td>
<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>
<td class="mr"></td>
</TR>
</table>
<table width="95%" cellspacing="0" cellpadding="0" >
<tr>
<td class="bl"></td>
<td class="bm"> </td>
<td class="br"></td>
</tr>
</table>
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -