booknav.ascx

来自「图书销售系统源码」· ASCX 代码 · 共 28 行

ASCX
28
字号
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="BookNav.ascx.cs" Inherits="BookNav" %>
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
    <tr>
        <td style="font-size: 14px; color: white" align="center" bgcolor="#0000cc">
            图书分类</td>
    </tr>
    <tr>
        <td>
        <asp:datalist id="MyList" Font-Size="Larger" EnableViewState="False" SelectedItemStyle-BackColor="dimgray"
								width="109px" runat="server" ShowFooter="False" Font-Underline="True" HorizontalAlign="Center"
								Font-Bold="True" CellSpacing="6">
								<SelectedItemStyle Font-Size="Medium" BackColor="DimGray"></SelectedItemStyle>
								<SelectedItemTemplate>
									<asp:HyperLink id="HyperLink2" Text='<%# DataBinder.Eval(Container.DataItem, "CatName") %>' NavigateUrl='<%# "BookList.aspx?CatID=" + DataBinder.Eval(Container.DataItem, "CatID") + "&selection=" + Container.ItemIndex %>' runat="server" />
								</SelectedItemTemplate>
								<ItemStyle Font-Underline="True" HorizontalAlign="Center"></ItemStyle>
								<ItemTemplate>
									<asp:HyperLink id="HyperLink1" Text='<%# DataBinder.Eval(Container.DataItem, "CatName") %>' NavigateUrl='<%# "BookList.aspx?CatID=" + DataBinder.Eval(Container.DataItem, "CatID") + "&selection=" + Container.ItemIndex %>' runat="server" />
								</ItemTemplate>
							</asp:datalist>
        </td>
    </tr>
    <tr>
        <td style="height: 19px">
        </td>
    </tr>
</table>

⌨️ 快捷键说明

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