nerdexam
Microsoft

70-515 · Question #123

You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform. You create an ASP.NET MVC 2 Web application using…

The correct answer is D. <%= Html.ActionLink("MyTest", "MyHome", "MyTest". See the full explanation below for the reasoning.

Question

You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform. You create an ASP.NET MVC 2 Web application using .NET Framework 4.0. You implement a single project area in the MVC 2 Web application. In the Areas folder, you add a subfolder named MyTest. You add the following files to the appropriate sub-folders: - MyController. cs - MyHome.aspx You register a route of the area, setting the route name to MyTest_default and the area name to test. You create a view named MyViews.aspx that is outside the test area. You need to add a link to MyViews.aspx that points to MyHome.aspx. Which of the following code segments will you use?

Options

  • A<%= Html.ActionLink("MyTest", "MyHome",
  • B<%= Html.RouteLink("MyHome", "MyTest",
  • C<%= Html.RouteLink("MyTest", "MyHome", "MyTest",
  • D<%= Html.ActionLink("MyTest", "MyHome", "MyTest",

How the community answered

(42 responses)
  • A
    12% (5)
  • B
    5% (2)
  • C
    2% (1)
  • D
    81% (34)

Community Discussion

No community discussion yet for this question.

Full 70-515 Practice