October 2010
Intermediate to advanced
1920 pages
73h 55m
English
You might want to display different navigation links to different users, depending on their roles. For example, if a user is a member of the Administrators role, you might want to display links to pages for administrating the website. However, you might want to hide these links from other users.
To display different links to different users depending on their roles, you must enable a feature of Site Maps named Security Trimming. This feature is disabled by default. The web configuration file in Listing 23.8 enables Security Trimming.
Listing 23.8. Web.Config

The configuration file in Listing 23.8 includes a <siteMap> ...
Read now
Unlock full access