black

MCTS(70-515)

登录

单项选择题

You are implementing an ASP.NET MVC 2 Web application that contains several folders. The Views/Shared/DisplayTemplates folder contains a templated helper named Score.ascx that performs custom formatting of integer values. The Models folder contains a class named Player with the following definition.
 
You need to ensure that the custom formatting is applied to LastScore values when the HtmlHelper.DisplayForModel method is called for any view in the application that has a model of type Player. What should you do?()

A.Rename Score.ascx to LastScore.ascx.
B.Move Score.ascx from the Views/Shared/DisplayTemplates folder to theViews/Player/DisplayTemplates folder.
C.Add the following attribute to the LastScore property.  [UIHint("Score")]
D.Add the following attribute to the LastScore property. [Display(Name="LastScore", ShortName="Score")]

相关考题

多项选择题 You are implementing an ASP.NET MVC 2 Web application. A controller contains the following code. The first Edit action displays the user whose details are to be edited, and the second Edit action is called when the Save button on the editing form is clicked to update the user details. An exception is thrown at run time stating that the request for action Edit is ambiguous. You need to correct this error and ensure that the controller functions as expected.What are two possible ways to achieve this goal?()

多项选择题 YouareimplementinganASP.NETMVC2Webapplicationthatallowsuserstoviewandeditdata.Youneedtoensurethatonlylogged-inuserscanaccesstheEditactionofthecontroller.WhataretwopossibleattributesthatyoucanaddtotheEditactiontoachievethisgoal?()

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

All Rights Reserved 版权所有©PP题库网库(pptiku.com)

备案号:湘ICP备14005140号-5

经营许可证号:湘B2-20140064