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

SiteMapDataSource4_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 runat="server">
  <title>Untitled Page</title>
</head>
<body>
  <form id="form1" runat="server">
    <div>
      <table width="300">
        <tr>
          <td colspan="2">
            <h3>StartFromCurrentNode</h3>
          </td>
        </tr>
        <tr>
          <td valign="top">
            <asp:TreeView ID="TreeView1" ExpandDepth="2" DataSourceID="SiteMapDataSource1" runat="server" />
            <asp:SiteMapDataSource StartingNodeUrl="~/home.aspx" StartingNodeOffset="2" ID="SiteMapDataSource1"
              runat="server" />
          </td>
          <td valign="top">
            <nobr>
              <asp:SiteMapPath ID="SiteMapPath1" runat="server" />
            </nobr>
            <br />
            <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
            </asp:ContentPlaceHolder>
            <br /><br />
            <asp:GridView Width="500" AutoGenerateColumns="False" DataSourceID="SiteMapDataSource2"
              ID="GridView1" runat="server">
              <Columns>
                <asp:BoundField DataField="Title" HeaderText="Title" ReadOnly="True" SortExpression="Title" />
                <asp:BoundField DataField="Description" HeaderText="Description" ReadOnly="True"
                  SortExpression="Description" />
                <asp:HyperLinkField DataNavigateUrlFields="Url" Text="View..." />
              </Columns>
            </asp:GridView>
            <asp:SiteMapDataSource ID="SiteMapDataSource2" StartFromCurrentNode="true" ShowStartingNode="false"
              runat="server" />
          </td>
        </tr>
      </table>
    </div>
  </form>
</body>
</html>