Welcome   |   ASP.NET   |   Web Services   |   How Do I...?   |   Class Browser   
  |   Font Size...      

SiteMapPathStyles_vb\SiteMap.master

<%@ Master %>
<!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 id="Head1" runat="server">
  <title>SiteMapPath Styles Sample</title>
</head>
<body>
  <form id="form1" runat="server">
    <div>
      <h2>
        SiteMapPath Styles Sample</h2>
      Use the Menu control on the left to navigate to different pages in the website.
      Click on links on the SiteMapPath control to navigate up the hierarchy. Notice that
      the CurrentNodeStyle, RootNodeStyle, NodeStyle and PathSepartorStyle are set. If
      the current node and the root node are the same then the CurrentNodeStyle is applied.
      <br />
      <br />
      <table cellpadding="8">
        <tr>
          <td bgcolor="#ccffcc" valign="top" rowspan="2">
            <b><i>Menu Control</i></b>
            <br />
            <br />
            <asp:Menu DataSourceID="SiteMapDataSource1" ID="Menu1" runat="server" 
              StaticDisplayLevels="2" BackColor="#FFFBD6" DynamicHorizontalOffset="2" 
              Font-Names="Verdana" ForeColor="#990000" StaticSubMenuIndent="10px">
              <StaticSelectedStyle BackColor="#FFCC66" />
              <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
              <DynamicMenuStyle BackColor="#FFFBD6" />
              <DynamicSelectedStyle BackColor="#FFCC66" />
              <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
              <DynamicHoverStyle BackColor="#990000" Font-Bold="False" ForeColor="White" />
              <StaticHoverStyle BackColor="#990000" Font-Bold="False" ForeColor="White" />
            </asp:Menu>
            <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
          </td>
          <td style="width: 10px">
          </td>
          <td bgcolor="#ffffcc" nowrap="noWrap" valign="top">
            <b><i>SiteMapPath Control</i></b>
            <br />
            <br />
            <asp:SiteMapPath Font-Names="Verdana" ID="SiteMapPath1" runat="server">
              <PathSeparatorStyle BackColor="Cornsilk" />
              <CurrentNodeStyle ForeColor="Purple" />
              <NodeStyle BackColor="Cornsilk" BorderColor="DarkGoldenrod" 
                BorderStyle="Double" BorderWidth="1px" Font-Bold="True" 
                ForeColor="MidnightBlue" />
              <RootNodeStyle Font-Italic="True" ForeColor="Sienna" />
            </asp:SiteMapPath>
          </td>
        </tr>
        <tr>
          <td style="width: 10px; height: 255px;">
          </td>
          <td style="border-left-color: black; border-bottom-color: black; width: 392px; 
           border-top-style : solid; border-top-color: black; border-right-style: solid; 
           border-left-style: solid; border-right-color: black;
            border-bottom-style: solid; height: 255px;" bgcolor="#ffcc00" valign="top">
            <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
              &nbsp;
            </asp:ContentPlaceHolder>
          </td>
        </tr>
      </table>
      <br />
      <br />
    </div>
  </form>
</body>
</html>