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

SiteMapPathTemplates_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 Template Sample</title>
</head>
<body>
  <form id="form1" runat="server">
    <div>
      <h2>
        SiteMapPath Template 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. Note the
      following behavior:
      <ul>
        <li>PathSeparatorTemplate displays an image.</li>
        <li>CurrentNodeTemplate displays the phrase You are at title! by databinding a 
           label to the title value.</li>
        <li>RootNodeTemplate displays the static phrase RootNode because it is not 
            databound to any SiteMap node values.</li>
        <li>The CurrentNodeTemplate has precedence over the RootNodeTemplate.</li>
      </ul>
      <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 ID="SiteMapPath1" runat="server">
              <PathSeparatorTemplate>
                <asp:Image ID="Image1" ImageUrl="~/images/separator.jpeg" 
                  runat="server" GenerateEmptyAlternateText="True" />
              </PathSeparatorTemplate>
              <RootNodeTemplate>
                <b>Root Node</b>
              </RootNodeTemplate>
              <CurrentNodeTemplate>
                You are at "<asp:Label ID="Label2" runat="server" Text='<%# Eval("title") %>'> 
                </asp:Label>&nbsp;!"
              </CurrentNodeTemplate>
            </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>
      &nbsp; &nbsp;
    </div>
  </form>
</body>
</html>