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.Public Class Player Public Property Name As String Public Property LastScore As IntegerPublic Property HighScore As IntegerEnd Class 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?() Rename Score.ascx to LastScore.ascx.。 Move Score.ascx from the Views/Shared/DisplayTemplates folder to the Views/Player/DisplayTemplates folder.。 Add the following attribute to the LastScore property. <UIHint("Score")>。 Add the following attribute to the LastScore property. <Display(Name:="LastScore", ShortName:="Score")>。
生前伤和死后伤主要的区别有哪些?
You are developing an ASP.NET MVC 2 Web application. A page makes an AJAX request and expects a list of company names in the following format. ["Adventure Works","Contoso"] You need to write an action method that returns the response in the correct format. Which type should you return from the action method?() AjaxHelper。 XDocument。 JsonResult。 DataContractJsonSerializer。
You are implementing an ASP. NET MVC 2 Web application. You add a controller named Company Controller. You need to modify the application to handle the URL path /company/info. Which two actions should you perform?() Add the following method to the CompanyController class. Function Info() As ActionResult Return View() End Function。 Add the following method to the CompanyController class. Function Company_Info() As ActionResult Return View() End Function。 Right-click the Views folder, and select View from the Add submenu to create the view for the action.。 Right-click inside the action method in the CompanyController class, and select Add View to create a view for the actio。
UG建模中主要采用()坐标系。 笛卡尔。 圆柱坐标系。 球坐标系。 其他。
You are developing an ASP.NET MVC 2 Web application. The application contains a controller named Home Controller, which has an action named Index. The application also contains a separate area named Blog. A view within the Blog area must contain an Action Link that will link to the Index action of the Home Controller. You need to ensure that the Action Link in the Blog area links to the Index action of the HomeController. Which Action Link should you use?()