ASP.NET Menu and SiteMap Security Trimming (plus a trick for when your menu and security don't match up)
Posted by: JonGalloway.ToString(),
on 27 Jan 2008 |
View original | Bookmarked: 0 time(s)
Summary ASP.NET 2005 introduced a pretty solid menu which is integrated with a configuration driven sitemap. The cool part is that the menu can be hooked in with your security roles, so you don't have to worry about hiding or showing menu options based on the user - the menu options are automatically kept in sync with what the user is allowed to see. We'll talk about how to set this up, using an example from a website I worked on recently. If you're familiar with ASP.NET sitemaps and menus, skip...