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

问题:

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

A . Add the following directive to TestPage.aspx. <%@ MasterType VirtualPath="~/TestMaster.master" %> 
B . Add the following directive to TestPage.aspx. <%@ PreviousPageType VirtualPath="~/TestMaster.master" %> 
C . Set the Strict attribute in the @ Master directive of the TestMaster.master page to true. 
D . Set the Explicit attribute in the @ Master directive of the TestMaster.master page to true.&e

下列说法不正确的是() 速度势函数相等的点连成的线称为等势线,速度方向垂直于等势线。。 连接任意两点的速度环量等于该两点的速度势函数之差。。 速度线积分与路径无关,仅决定于两点的位置,如果是封闭曲线,速度环量为零。。 对于平面流动,无论是理想流还是粘性流,无论是有漩涡还是无漩涡,均存在流函数。 You create an ASP.NET page named TestPage.aspx that contains validation controls. You need to verify that all input values submitted by the user have been validated by testing the Page.IsValid property. Which page event should you add an event handler to?() Init。 Load。 PreInit。 PreLoad。 You are troubleshooting an ASP.NET Web application. System administrators have recently expanded your web farm from one to two servers. Users are periodically reporting an error message about invalid view state. You need to fix the problem. What should you do?() Set viewStateEncryptionMode to Auto in web.config on both servers.。 Set the machineKey in machine.config to the same value on both servers.。 Change the session state mode to SQLServer on both servers and ensure both servers use the same connection string.。 Override the SavePageStateToPersistenceMedium and LoadPageStateFromPersistenceMedium methods in the page base class to serialize the view state to a local web server file.。 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 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?()
参考答案:

  参考解析

本题暂无解析

相关题目:

在线 客服

相关内容

相关标签