Note that there are some explanatory texts on larger screens.

plurals
  1. PONavigation SiteMathPath
    primarykey
    data
    text
    <p>My application has a number of different users, currently there are different masterpages set up for them. The idea is for some type of breadcrumb in the system i.e. home > details > ...</p> <p>What is the best approach for this? I think I will need to define the separate paths that each user can have (all the pages they can view) in the Web.sitemap (will have multiple SiteMapPaths) and then add the sitemap control to masterpage and link them to the appropriate SiteMapPath, does this sound like the right way to approach this?</p> <p>I am having an issue with setting up the SiteMapPath within the masterpage. I used the following tutorial <a href="http://geekswithblogs.net/azamsharp/archive/2006/08/16/88197.aspx" rel="nofollow">http://geekswithblogs.net/azamsharp/archive/2006/08/16/88197.aspx</a> to try to use the control, but the SiteMapPath control is not displaying on the masterpage when I log in do you know what the problem might be?</p> <pre><code>Web.sitemap: &lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" &gt; &lt;siteMapNode url="home.aspx" title="" description=""&gt; &lt;siteMapNode url="contacts.aspx" title="" description=""&gt; &lt;/siteMapNode&gt; &lt;/siteMap&gt; </code></pre> <p>On the masterpage:</p> <pre><code>&lt;asp:SiteMapPath ID="SiteMapPath1" runat="server"&gt; &lt;RootNodeTemplate&gt; &lt;asp:HyperLink ID="HyperLink1" runat="server" Text='&lt;%# Eval("title") %&gt;' NavigateUrl='&lt;%# Eval("url") %&gt;' /&gt; &lt;/RootNodeTemplate&gt; &lt;NodeTemplate&gt; &lt;asp:HyperLink ID="HyperLink2" runat="server" Text='&lt;%# Eval("title") %&gt;' NavigateUrl='&lt;%# Eval("url") %&gt;' /&gt; &lt;/NodeTemplate&gt; &lt;/asp:SiteMapPath&gt; </code></pre> <p>Thank you</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload