nerdexam
Microsoft

70-515 · Question #82

You are developing an ASP.NET MVC 2 Web Application that displays daily blog posts. Visitors access a blog post page by using a Web address to pass in the year, month, and day-for example…

The correct answer is A. routes.MapRoute("DailyBlogPosts". See the full explanation below for the reasoning.

Question

You are developing an ASP.NET MVC 2 Web Application that displays daily blog posts. Visitors access a blog post page by using a Web address to pass in the year, month, and day-for example, contoso.com/2010/07/20. The application must register the appropriate route to use the Display action of the blog controller. Only page visits with a four digit year, two-digit month and two-digit dat can be passed to the action. You need to ensure that the route is registered correctly, Which code segment should you add?

Options

  • Aroutes.MapRoute("DailyBlogPosts",
  • Broutes.MapRoute("DailyBlogPosts",
  • Croutes.MapRoute("DailyBlogPosts",
  • Droutes.MapRoute("DailyBlogPosts",

How the community answered

(30 responses)
  • A
    83% (25)
  • B
    10% (3)
  • C
    3% (1)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 70-515 Practice