|
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SiteMapPathUserControl.ascx.cs"
Inherits="MVCSiteMap.Views.Shared.Controls.SiteMapPathUserControl" %>
<% SiteMapNode node = SiteMap.Provider.CurrentNode.ParentNode;
List<SiteMapNode> nodes = new List<SiteMapNode>();
while (node != null)
{
nodes.Add(node);
node = node.ParentNode;
}
%>
<%
nodes.Reverse();
nodes.RemoveAt(0);
foreach (SiteMapNode item in nodes)
{
%>
<a href="<%= ResolveUrl(item.Url) %>">
<%= item.Title%></a> >
<% } %>
<%= SiteMap.Provider.CurrentNode %>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.