nerdexam
Microsoft

70-515 · Question #41

You are implementing an ASP.NET MVC 2 application. In the Areas folder, you add a subfolder named Product to create a single project area. You add files named ProductController.cs and Index.aspx to…

Sign in or unlock 70-515 to reveal the answer and full explanation for question #41. The question stem and answer options stay visible for context.

Question

You are implementing an ASP.NET MVC 2 application. In the Areas folder, you add a subfolder named Product to create a single project area. You add files named ProductController.cs and Index.aspx to the appropriate subfolders. You then add a file named Route.cs to the Product folder that contains the following code. (Line numbers are included for reference only.) 01 public class Routes : AreaRegistration 02 { 03 public override string AreaName 04 { 05 get { return "product"; } 06 } 07 08 public override void RegisterArea(AreaRegistrationContext context) 09 { 10 context.MapRoute("product_default", "product/{controller}/{action}/{id}", new { controller = "Product", action = "Index", id = "" }); 11 } 12 } not returned. You need to ensure that the correct page is returned. What should you do?

Options

  • AReplace line 10 with the following code segment.
  • BReplace line 10 with the following code segment.
  • CAdd the following code segmnet at line 11
  • DAdd the following Code segmnet to the Register Routes in Global.asax.cs file.

Unlock 70-515 to see the answer

You've previewed enough free 70-515 questions. Unlock 70-515 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 70-515 Practice