📄 categorylist.ascx
字号:
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="CategoryList.ascx.cs" Inherits="eshop.CategoryList" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<table width="145" border="0" height="100%">
<tr valign="top" height="100%">
<td colspan="2" bgcolor=#d3d3d3>
<asp:DataList id="MyList" runat="server" cellpadding="3" cellspacing="0" width="145"
SelectedItemStyle-BackColor="black" EnableViewState="false">
<ItemTemplate>
<asp:HyperLink cssclass="MenuUnselected" id="HyperLink1"
Text='<%# DataBinder.Eval(Container.DataItem, "CategoryName") %>'
NavigateUrl='<%# "../Productlist.aspx?categoryID="
+ DataBinder.Eval(Container.DataItem, "categoryId")
+ "&selection=" + Container.ItemIndex %>' runat="server" />
</ItemTemplate>
<SelectedItemTemplate>
<asp:HyperLink cssclass="MenuSelected" id="HyperLink2"
Text='<%# DataBinder.Eval(Container.DataItem, "CategoryName") %>'
NavigateUrl='<%# "../productlist.aspx?categoryID="
+ DataBinder.Eval(Container.DataItem, "categoryId")
+ "&selection=" + Container.ItemIndex %>' runat="server" />
</SelectedItemTemplate>
</asp:DataList>
</td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -