在网上看了好多的文章都解决不了SiteMapPath的显示问题,所以写下这篇文章记录一下解决的办法。
前台Xaml代码:
<div class="divNav">
<asp:Label ID="LblNavigation" Text="您的位置:" runat="server" />
<asp:SiteMapPath ID="Smp" runat="server"/>
</div>
<asp:Label ID="LblNavigation" Text="您的位置:" runat="server" />
<asp:SiteMapPath ID="Smp" runat="server"/>
</div>
Web.sitemap代码:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="~/Default" title="首页" description="">
&n
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="~/Default" title="首页" description="">
&n