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

问题:

[单选] You are implementing an ASP.NET Web site that will be accessed by an international audience. The site contains global and local resources for display elements that must be translated into the language that is selected by the user. You need to ensure that the Label control named lblCompany displays text in the users selected language from the global resource file. Which control markup should you use?()

A . <asp:Label ID="lblCompany" runat="server"  meta:resourcekey="lblCompany" /> 
B . <asp:Label ID="lblCompany" runat="server" Text="meta:lblCompany.Text" /> 
C . <asp:Label ID="lblCompany" runat="server"  Text="<%$ Resources:lblCompanyText %>" />
D . <asp:Label ID="lblCompany" runat="server"  Text="<%$ Resources:WebResources, lblCompanyText %>" />&e

You are creating an ASP.NET Web site. The site has a master page named Custom.master. The code-behind file for Custom.master contains the following code segment.Partial Public Class Custom  Inherits System.Web.UI.MasterPagePublic Property Region As String    Protected Sub Page_Load(ByVal sender As Object,ByVal e As System.EventArgs) Handles Me.LoadEnd SubEnd Class You create a new ASP.NET page and specify Custom.master as its master page.You add a Label control named lblRegion to the new page.  You need to display the value of the master pages Region property in lblRegion.What should you do? () Add the following code segment to the Page_Load method of the page code-behind file. Dim custom As Custom = Me.Parent  lblRegion.Text = custom.Region。 Add the following code segment to the Page_Load method of the page code-behind file. Dim custom As Custom = Me.Master  lblRegion.Text = custom.Region。 Add the following code segment to the Page_Load method of the Custom.Master.vb code-behind file. Dim lblRegion As Label = Page.FindControl("lblRegion") lblRegion.Text = Me.Region。 Add the following code segment to the Page_Load method of the Custom.Master.vb code-behind file. Dim lblRegion As Label = Master.FindControl("lblRegion") lblRegion.Text = Me.Regio。 某企来在负责人的领导下,建立了有序的分级安全管理体系,该体系中各(级)层次部门各施其职,某层次解决不了问题,由上上层次来协调,下一层次服从上一层次的有效控制,请问这种安全管理方式符合下列()管理的基本原则。 整分合原则。 封闭原则。 激励原则。 动力原则。 You have created an ASP.NET server control named Shopping Cart for use by other developers. Some developers report that the Shopping Cart control does not function properly with ViewState disabled. You want to ensure that all instances of the Shopping Cart control work even if View State is disabled. What should you do?() Require developers to set EnableViewStateMac to true.。 Store state in ControlState instead of ViewState.。 Serialize the state into an Application state entry called "MyControl".。 Require developers to change the session state mode to SQLServer.。 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 Web site that will be accessed by an international audience. The site contains global and local resources for display elements that must be translated into the language that is selected by the user. You need to ensure that the Label control named lblCompany displays text in the users selected language from the global resource file. Which control markup should you use?()
参考答案:

●  参考解析

本题暂无解析

相关题目:

在线 客服