black

MCTS(70-515)

登录

多项选择题

You are implementing an ASP.NET MVC 2 Web application that allows users to view and edit data. You need to ensure that only logged-in users can access the Edit action of the controller. What are two possible attributes that you can add to the Edit action to achieve this goal? ()

A.[Authorize(Users = "")]
B.[Authorize(Roles = "")]
C.[Authorize(Users = "*")]
D.[Authorize(Roles = "*")]

相关考题

单项选择题 YouareimplementinganASP.NETMVC2Webapplication.TheURLwithpath/Home/Details/{country}willreturnapagethatprovidesinformationaboutthenamedcountry.YouneedtoensurethatrequestsforthisURLthatcontainanunrecognizedcountryvaluewillnotbeprocessedbytheDetailsactionofHomeController.Whatshouldyoudo?()

多项选择题 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?()

All Rights Reserved 版权所有©考试题库网(kstiku.com)

备案号:湘ICP备14005140号-3

经营许可证号:湘B2-20140064