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

问题:

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

A . Set viewStateEncryptionMode to Auto in web.config on both servers.
B . Set the machineKey in machine.config to the same value on both servers.
C . Change the session state mode to SQLServer on both servers and ensure both servers use the same connection string.
D . 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 application that uses data-bound GridView controls in multiple pages. You add JavaScript code to periodically update specific types of data items in these GridView controls. You need to ensure that the JavaScript code can locate the HTML elements created for each row in these GridView controls, without needing to be changed if the controls are moved from one page to another. What should you do?() Replace the GridView control with a ListView control.。 Set the ClientIDMode attribute to Predictable in the web.config file.。 Set the ClientIDRowSuffix attribute of each unique GridView control to a different value.。 Set the @ OutputCache directives VaryByControl attribute to the ID of the GridView control.。 You are developing an ASP.NET Web application. You create a master page. The master page requires a region where you can add page-specific content by using the ASP.NET page designer.  You need to add a control to the master page to define the region. Which control should you add?() Content。 ContentPlaceHolder。 PlaceHolder。 Substitutio。 下列说法不正确的是() 速度势函数相等的点连成的线称为等势线,速度方向垂直于等势线。。 连接任意两点的速度环量等于该两点的速度势函数之差。。 速度线积分与路径无关,仅决定于两点的位置,如果是封闭曲线,速度环量为零。。 对于平面流动,无论是理想流还是粘性流,无论是有漩涡还是无漩涡,均存在流函数。 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 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?()
参考答案:

  参考解析

本题暂无解析

相关题目:

在线 客服