Security Trimming in ASP.NET 2.0

Dan Sellers talks about Security Trimming in ASP.NET as a great way to easily limit access to certain areas of you application to certain roles/

I've never seen Dan's blog before - but it's chalk full of developer security goodness! Subscribed.

When Security Trimming is enabled the standard SiteMapProvider class invokes the “IsAccessibleToUser” method to determine if the authenticated user has the authorization to view the Web Page as defined in the Site Map.  Therefore, if the authenticated user does have the required authorization the menu item will appear in the Menu or the Tree View Control, on the other hand if the User is anonymous or is not authorized then the Menu Item will no longer be present in the Menu or Tree View Control.


Skip to main content