当前位置:MCTS(70-515)题库

问题:

[单选] 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?()

A . AjaxHelper
B . XDocument
C . JsonResult
D . DataContractJsonSerializer

You are implementing an ASP.NET application that includes a page named TestPage.aspx. TestPage.aspx uses a master page named TestMaster.master.You add the following code to the TestPage.aspx code-behind file to read a TestMaster.master public property named CityName. Protected Sub Page_Load(ByVal sender As Object,ByVal e As System.EventArgs) Handles Me.LoadDim s As String = Master.CityNameEnd Sub  You need to ensure that TestPage.aspx can access the CityName property. What should you do?() Add the following directive to TestPage.aspx. <%@ MasterType VirtualPath="~/TestMaster.master" %> 。 Add the following directive to TestPage.aspx. <%@ PreviousPageType VirtualPath="~/TestMaster.master" %> 。 Set the Strict attribute in the @ Master directive of the TestMaster.master page to true. 。 Set the Explicit attribute in the @ Master directive of the TestMaster.master page to true.&e。 高山 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. 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?() Html.ActionLink("Home", "Index", "Home")。 Html.ActionLink("Home", "Index", "Home",  New With {.area = ""}, Nothing)。 Html.ActionLink("Home", "Index", "Home",  New With {.area = "Blog"}, Nothing)。 Html.ActionLink("Home", "Index", "Home",  New With {.area = "Home"}, Nothing)。 以下不属于公共组织特征的有()。 以实现公共利益为基本职责。 不以营利为目的。 通过行使公共权力来管理公共事务。 以营利为目的。 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?()
参考答案:

  参考解析

本题暂无解析

相关题目:

在线 客服