Microsoft
70-515 · Question #42
You are implementing an ASP.NET MVC 2 Web application. You create a shared user control named MenuBar.ascx that contains the application's menu. You need to use the menu bar in all application…
The correct answer is A. In the site's master page, create a div element with an ID of Navigation. See the full explanation below for the reasoning.
Question
You are implementing an ASP.NET MVC 2 Web application. You create a shared user control named MenuBar.ascx that contains the application's menu. You need to use the menu bar in all application views. What should you do?
Options
- AIn the site's master page, create a div element with an ID of Navigation.
- BIn the site's master page, create a div element with an ID of Navigation.
- CIn each of the controller's action methods, add an entry to the ViewData collection with a key
- DIn the site's Global.asax.cs file, register a route named Navigation that points to the
How the community answered
(22 responses)- A77% (17)
- B5% (1)
- C5% (1)
- D14% (3)
Community Discussion
No community discussion yet for this question.