Which approach should you recommend?

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?

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_Init method to add to the Menu control only pages that the user is authorized to view.

B.
Use the Page_Load method to add to the Menu control only pages that the user is authorized to view.

C.
Use a JavaScript window.onload event handler to hide the private pages from the list of pages shown on the menu.

D.
Use a JavaScript document.ready event handler to hide the private pages from the list of pages shown on the menu.



Leave a Reply 0

Your email address will not be published. Required fields are marked *