PrepAway - Latest Free Exam Questions & Answers

You need to display the items in a table named Products by using a custom layout

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.vb file contains the
following code segment.
Public Shared Sub RegisterRoutes(ByVal routes As RouteCollection)
routes.Add(New DynamicDataRoute(“{table}/ListDetails.aspx”) _
With
{
.Action = PageAction.List,
.ViewName = “ListDetails”,
.Model = DefaultModel
})
routes.Add(New DynamicDataRoute(“{table}/ListDetails.aspx”) _
With
{
.Action = PageAction.Details,
.ViewName = “ListDetails”,
.Model = DefaultModel
})
End Sub
You need to display the items in a table named Products by using a custom layout. What should you
do?

PrepAway - Latest Free Exam Questions & Answers

A.
Add a new Web page named Products.aspx to the Dynamic Data\PageTemplates folder of the
Web site.

B.
Add a new folder named Products to the Dynamic Data\CustomPages folder of the Web site. Add
a new Web page named ListDetails.aspx to the Products folder.

C.
Add a new Web user control named Products.ascx to the Dynamic Data\Filters folder of the Web
site. In the code-behind file for the control, change the base class from UserControl to
System.Web.DynamicData.QueryableFilterUserControl.

D.
Add a new Web user control named Products_ListDetails.ascx to the Dynamic
Data\EntityTemplates folder of the Web site. In the code-behind file for the control, change the base
class from UserControl to System.Web.DynamicData.EntityTemplateUserControl.


Leave a Reply