Provider SiteMap ASP.NET MVC -Razor

I downloaded MVC SiteMap Provider from codeplex and registered the same. In my views, I use Razor (.cshtml) to display.

I have a menu with all the buttons in the "My" folder. How to use the MVC site map to display multiple buttons in views and hide others based on roles.

I could not find any examples on how to set up hiding and showing?

steps will be more useful, what to do where?

Thanks!

+4
source share
1 answer

The name, description and roles are extracted from the xml node and used to create the site map of the node. The Roles attribute includes a security trim feature that hides all nodes that are not accessible to the user based on his or her roles.

Read more @ http://www.webpirates.nl/webpirates/robin-van-der-knaap/29-aspnet-mvc-site-map

+2
source

All Articles