You are designing an ASP.NET Web application. The Web application uses a Menu control
to display either a menu of public and private pages to authorized users or a menu of only
public pages to visitors. You need to ensure that the menu options and URLs of the private
pages are not available to unauthorized users. Which approach should you recommend?
A.
Use the Page_Load method to add to the Menu control only pages that the user is
authorized to view
B.
Use a JavaScript window.onload event handler to hide the private pages from the list of
pages shown on the menu
C.
Use a JavaScript document ready event handler to hide the private pages from the list of
pages shown on the menu
D.
Use the Page_lnit method to add to the Menu control only pages that the user is
authorized to view
Explanation: