Microsoft
70-519 · Question #212
70-519 Question #212: Real Exam Question with Answer & Explanation
The correct answer is B. Use the Page_Load method to add to the Menu control only pages that the user is. See the full explanation below for the reasoning.
Question
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?
Exhibit
Options
- AUse the Page_lnit method to add to the Menu control only pages that the user is authorized
- BUse the Page_Load method to add to the Menu control only pages that the user is
- CUse a JavaScript window.onload event handler to hide the private pages from the list of
- DUse a JavaScript document ready event handler to hide the private pages from the list of
Community Discussion
No community discussion yet for this question.
