【发布时间】:2011-09-19 08:20:21
【问题描述】:
我有这样的节点,当用户通过身份验证时我想隐藏它。
如何使用 ASP.NET MVC SiteMap 提供程序来做到这一点?
我试过了:
http://mvcsitemap.codeplex.com/discussions/246986
然后我得到一个错误:
Value cannot be null.
Parameter name: type
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: type
Source Error:
Line 114: @Html.MvcSiteMap("MvcSiteMapProvider").Menu()
【问题讨论】:
-
在节点中设置可见性提供程序时,请记住还要指定程序集名称:visibilityProvider="MyProject.VisibilityProviders.MyVisibilityProvider, MyProject"
标签: asp.net-mvc-3 mvcsitemapprovider