nerdexam
Microsoft

70-515 · Question #40

You create an ASP.NET MVC 2 Web application. You implement a single project area in the application. In the Areas folder, you add a subfolder named Test. You add files named TestController.cs and…

The correct answer is B. <%= Html.ActionLink("Test", "Details", "Test". See the full explanation below for the reasoning.

Question

You create an ASP.NET MVC 2 Web application. You implement a single project area in the application. In the Areas folder, you add a subfolder named Test. You add files named TestController.cs and Details.aspx to the appropriate subfolders. You register the area's route, setting the route name to test_default and the area name to test. You create a view named Info.aspx that is outside the test area. You need to add a link to Info.aspx that points to Details.aspx. Which code segment should you use?

Options

  • A<%= Html.RouteLink("Test", "test_default",
  • B<%= Html.ActionLink("Test", "Details", "Test",
  • C<a href="<%= Html.RouteLink("Test", "test_default",
  • D<a href="<%= Html.ActionLink("Test", "Details", "Test",

How the community answered

(41 responses)
  • A
    10% (4)
  • B
    83% (34)
  • C
    2% (1)
  • D
    5% (2)

Community Discussion

No community discussion yet for this question.

Full 70-515 Practice