70-515 · Question #32
You are implementing an ASP.NET Dynamic Data Web site. The Web site includes a data context that enables automatic scaffolding for all tables in the data model. The Global.asax.cs file contains the…
Sign in or unlock 70-515 to reveal the answer and full explanation for question #32. The question stem and answer options stay visible for context.
Question
You are implementing an ASP.NET Dynamic Data Web site. The Web site includes a data context that enables automatic scaffolding for all tables in the data model. The Global.asax.cs file contains the following code segment. public static void RegisterRoutes(RouteCollection routes) { routes.Add(new DynamicDataRoute("{table}/ListDetails.aspx") { Action = PageAction.List, ViewName = "ListDetails", Model = DefaultModel }); routes.Add(new DynamicDataRoute("{table}/ListDetails.aspx") { Action = PageAction.Details, ViewName = "ListDetails", Model = DefaultModel }); } You need to display the items in a table named Products by using a custom layout. What should you do?
Options
- AAdd a new Web page named Products.aspx to the Dynamic Data\PageTemplates folder of
- BAdd a new folder named Products to the Dynamic Data\CustomPages folder of the Web site.
- CAdd a new Web user control named Products.ascx to the Dynamic Data\Filters folder of the
- DAdd a new Web user control named Products_ListDetails.ascx to the Dynamic
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.