Question:
You create and deploy an online forum application that uses ASP.NET membership and roles. The application Web pages include Menu controls that display navigation links retrieved from a file named forum.sitemap. Users who are not members of the Moderators role receive an "Access is Denied" message when they attempt to follow links to pages within a restricted folder named Moderators. You need to ensure that the Menu controls display navigation links only to pages that the current user is authorized to access. What should you do? (More than one answer choice may achieve the goal. Select the BEST answer.)
A
In the forum.sitemap file, remove entries for Web pages in the Moderators folder.
B
In the forum.sitemap file, add the roles="?" attribute to entries for Web pages in the Moderators folder.
C
In the constructor for each Web page, add an event handler that handles the SiteMap.SiteMapResolve event.
D
In the Web.config file, apply the securityTrimmingEnabled="true" attribute to the default site- map provider.
+ AnswerD
+ Report