nerdexam
Microsoft

70-515 · Question #85

You are developing an ASP.NET MVC2 application. You add an area named Admin to the application. Admin contains a controller class name to MainController. You create a view named Index outside the…

The correct answer is A. <%= Html.ActionLink("Admin","Default", "Main", new. See the full explanation below for the reasoning.

Question

You are developing an ASP.NET MVC2 application. You add an area named Admin to the application. Admin contains a controller class name to MainController. You create a view named Index outside the Admin area. You need to add a link in the Index view that will call the Default action. Wich markup should you use?

Options

  • A<%= Html.ActionLink("Admin","Default", "Main", new
  • B<%= Html.RouteLink("Admin","Default", new
  • C<%= Html.RenderAction("Admin","Default", new
  • D<%= Html.Action("Admin","Default",new {area="admin"}) %>

How the community answered

(53 responses)
  • A
    75% (40)
  • B
    8% (4)
  • C
    4% (2)
  • D
    13% (7)

Community Discussion

No community discussion yet for this question.

Full 70-515 Practice