任何人都可以幫助我使用mvcsitemapprovider。站點地圖上的麪包屑拒絕顯示,直到我編輯mvc.siemap文件並保存。它只會暫時顯示麪包屑,直到我離開頁面並重新打開它。MvcSiteMapProvider僅在編輯mvc.sitemap時顯示mvc4
我的設置..
<?xml version="1.0" encoding="utf-8" ?>
<mvcSiteMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-4.0"
xsi:schemaLocation="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-4.0
MvcSiteMapSchema.xsd">
<mvcSiteMapNode title="Dashboard" controller="Dashboard" action="Index">
<mvcSiteMapNode title="Customers" controller="Customers" action="Index">
<mvcSiteMapNode title="Details" controller="Customers" action="Details" />
<mvcSiteMapNode title="Edit" controller="Customers" action="Edit" />
</mvcSiteMapNode>
</mvcSiteMapNode>