⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sitemapdemo.master

📁 asp。net 2.0宝典一书源码 全书源码给大家共享
💻 MASTER
字号:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="SiteMapDemo.master.cs" Inherits="SiteMapDemo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>网站导航技术演示</title>
</head>
<body>
    <form id="form1" runat="server">
    <div><table style="width: 100%; height: 100%">
            <tr>
                <td style="width: 294px">
                    <h2>使用TreeView导航控件</h2>
                    <asp:treeview id="TreeView1" runat="server" datasourceid="SiteMapDataSource1" MaxDataBindDepth="-1">
                        <selectednodestyle backcolor="White" verticalpadding="1px" bordercolor="#888888" borderstyle="Solid" borderwidth="1px" horizontalpadding="3px"></selectednodestyle>
                        <nodestyle verticalpadding="2px" font-names="Verdana" font-size="8pt" nodespacing="1px" horizontalpadding="5px" forecolor="Black"></nodestyle>
                        <hovernodestyle backcolor="CornflowerBlue" ForeColor="White" bordercolor="#888888" borderstyle="Solid" borderwidth="1px" font-underline="True"></hovernodestyle>
                    </asp:treeview>
                      <h2>使用Menu导航控件</h2>
                      <asp:menu id="Menu"
                    datasourceid="SiteMapDataSource2"
                    disappearafter="500"
                    staticdisplaylevels="2"
                    staticsubmenuindent="20" 
                    orientation="Vertical"
                    font-names="Trebuchet MS, Arial" 
                    DynamicMenuItemStyle-Width="150"
                    Width="150"
                    runat="server">
                    
                    <staticmenuitemstyle backcolor="RoyalBlue" forecolor="WhiteSmoke" horizontalpadding="5px" verticalpadding="2px" />
                    <statichoverstyle backcolor="CornflowerBlue" forecolor="White" borderstyle="Solid" borderwidth="1px" />
                    <dynamicmenuitemstyle backcolor="RoyalBlue" forecolor="WhiteSmoke" horizontalpadding="5px" verticalpadding="2px" Width="150px" />
                    <dynamichoverstyle backcolor="CornflowerBlue" forecolor="White" borderstyle="Solid" borderwidth="1px" />
                </asp:menu>
                </td>
                <td>
                    <asp:sitemappath id="SiteMapPath1" runat="server" pathseparator=" : ">
                        <pathseparatorstyle font-bold="True" forecolor="#507CD1"></pathseparatorstyle>
                        <currentnodestyle forecolor="#333333"></currentnodestyle>
                        <nodestyle font-bold="True" forecolor="#284E98"></nodestyle>
                        <rootnodestyle font-bold="True" forecolor="#507CD1"></rootnodestyle>
                    </asp:sitemappath>
                    <br />
        <asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
        </asp:contentplaceholder>
                </td>
            </tr>
        </table>
        <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" SiteMapProvider="FirstMap" />
        <asp:SiteMapDataSource ID="SiteMapDataSource2" runat="server" SiteMapProvider="SecondMap" />
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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