单项选择题
A.Add the ValidateAntiForgeryToken attribute to the Details action method.
B.Add the Bind attribute to the country parameter of the Details action method. Set the attribute’s Prefix property to Country.
C.Create a class that implements the IRouteConstraint interface. Configure the default route to use this class.
D.Create a class that implements the IRouteHandler interface. Configure the default route to use this class.
多项选择题 YouareimplementinganewDynamicDataWebsite.TheWebsiteincludesaWebpagethathasanObjectDataSourcecontrolnamedObjectDataSource1.ObjectDataSource1interactswithaWebservicethatexposesmethodsforlistingandeditinginstancesofaclassnamedProduct.YouaddaGridViewcontrolnamedGridView1tothepage,andyouspecifythatGridView1shoulduseObjectDataSource1asitsdatasource.YouthenconfigureGridView1toauto-generatefieldsandtoenableediting.YouneedtoaddDynamicDatabehaviortoGridView1.YoualsomustensurethatuserscanuseGridView1toupdateProductinstances.Whichtwoactionsshouldyouperform?()
单项选择题 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. You need to display the items in a table named Products by using a custom layout. What should you do?()
多项选择题 You are implementing an ASP.NET Web site. The site contains the following class. The Web site interacts with an external data service that requires Address instances to be given in the following XML format. You need to ensure that Address instances that are serialized by the XmlSerializer class meet the XML format requirements of the external data service. Which two actions should you perform.()