
Gracias.
site.master
Código:
web.sitemap<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Site.master.cs" Inherits="Site" %> <!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>Contacts Site</title> <link href="StyleSheet.css" rel="stylesheet" type="text/css" /> </head> <body> <hr class="linea" /> <form id="form1" runat="server"> <div> <span class="tit_pagina">Contacts Site</span> </div> <div id="menuDer"> <asp:contentplaceholder id="MainContent" runat="server"> </asp:contentplaceholder> </div> <asp:TreeView ID="TreeView1" runat="server" DataSourceID="SiteMapDataSource1" LineImagesFolder="~/TreeLineImages" ShowLines="True"> </asp:TreeView> <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="false"/> </form> </body> </html>
Código:
<?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode title="Inicio" description=""> <siteMapNode title="Home" url="~/Default.aspx" description=""> <siteMapNode title="DataSample" url="~/DataSample.aspx" description="" /> <siteMapNode title="UserControl" url="~/UserControl.aspx" description="" /> </siteMapNode> </siteMapNode> </siteMap>