多项选择题
A.Add the following attribute to the first Edit action. [AcceptVerbs(HttpVerbs.Head)]
B.Add the following attribute to the first Edit action. [HttpGet]
C.Add the following attribute to the second Edit action. [HttpPost]
D.Add the following attribute to the second Edit action. [HttpPut]
多项选择题 YouareimplementinganASP.NETMVC2Webapplicationthatallowsuserstoviewandeditdata.Youneedtoensurethatonlylogged-inuserscanaccesstheEditactionofthecontroller.WhataretwopossibleattributesthatyoucanaddtotheEditactiontoachievethisgoal?()
单项选择题 YouareimplementinganASP.NETMVC2Webapplication.TheURLwithpath/Home/Details/{country}willreturnapagethatprovidesinformationaboutthenamedcountry.YouneedtoensurethatrequestsforthisURLthatcontainanunrecognizedcountryvaluewillnotbeprocessedbytheDetailsactionofHomeController.Whatshouldyoudo?()
多项选择题 YouareimplementinganewDynamicDataWebsite.TheWebsiteincludesaWebpagethathasanObjectDataSourcecontrolnamedObjectDataSource1.ObjectDataSource1interactswithaWebservicethatexposesmethodsforlistingandeditinginstancesofaclassnamedProduct.YouaddaGridViewcontrolnamedGridView1tothepage,andyouspecifythatGridView1shoulduseObjectDataSource1asitsdatasource.YouthenconfigureGridView1toauto-generatefieldsandtoenableediting.YouneedtoaddDynamicDatabehaviortoGridView1.YoualsomustensurethatuserscanuseGridView1toupdateProductinstances.Whichtwoactionsshouldyouperform?()