You create a master page named Template.master. Template.master contains the following ContentPlaceHolder server controls.You also create 10 Web Forms. The Web Forms reference Template.master as their master page. Each Web Form has the following Content c

题目

You create a master page named Template.master. Template.master contains the following ContentPlaceHolder server controls.You also create 10 Web Forms. The Web Forms reference Template.master as their master page. Each Web Form has the following Content controls that correspond to the ContentPlaceHolder controls in Template.master.You need to configure the Web pages so that default content will be shown in the area2 ContentPlaceHolder control whenever a Web Form does not provide that content. What should you do? ()

  • A、Move default content inside area2 in Template.master. Remove area2 from Web Forms that do not provide content.
  • B、Move default content inside area2 in Template.master. Leave area2 blank in Web Forms that do not provide content.
  • C、Move default content inside area2 in the Web Forms. Remove area2 from Template.master.
  • D、Create an additional ContentPlaceHolder control in Template.master named area2_default. Place default content inside area2_default. Remove area2 from Web Forms that do not provide content.
参考答案和解析
正确答案:A
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You create a Web Form that contains connected Web Parts. You write the following declaration in your Web Form.You need to ensure that your Web Part connection is valid. Which two actions should you perform? ()

A. Include a data source identified as "WebPartConnection1" on the Web Form.

B. Include a Web Part identified as "customerPart" on the Web Form.

C. Include a Web Part identified as "ordersPart" on the Web Form.

D. Ensure that you declare an interface named "IOrdersPart".

E. Ensure that you declare an interface named "ICustomerPart".

F. Ensure that each Web Part declares either a GetInterface or ProvideInterface method.


参考答案:B, C

第2题:

You create a Web Form that contains a button named btnCancel that enables users to exit the page. When users click this button, validation must not occur. During testing you learn that clicking the Cancel button does not enable users to exit the page. You need to ensure that users can always exit the page. What should you do? ()

  • A、Set the Enabled property of the validation controls on the Web Form to False.
  • B、Set the CausesValidation property of the btnCancel button to False.
  • C、Set the CausesValidation property of the btnCancel button to True.
  • D、Set the Visible property of the validation controls on the Web Form to False.

正确答案:B

第3题:

You create a master page named PageBase.master. The master page contains a Label control named lblTitle.You create a content page that references the master page.You need to change the Text property of the master page‘s lblTitle control from the content page.Which code segment should you use?()

A.

B.

C.

D.


参考答案:A

第4题:

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? ()

  • A、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
  • B、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
  • C、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
  • D、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.Region

正确答案:B

第5题:

You create a master page named Article.master. Article.master serves as the template for articles on your Web site. The master page uses the following page directives. <%@ Master Language="VB" CodeFile="article.master.vb" Inherits="article" %> You need to create a content page that uses the master page as a template. In addition, you need to use a single master page for all devices that access the Web site. Which code segment should you use? ()

  • A、<%@ Page Language="VB" Theme="article"%>
  • B、<%@ Page Language="VB" MasterPageFile="~/article.master"%>
  • C、<%@ Page Language="VB" ie:MasterPageFile="~/article.master"%>
  • D、<%@Page Language="VB" all:MasterPageFile="~/article.master"%>

正确答案:B

第6题:

You create a Web Form. You need to add controls that use adaptive rendering to display content. The type of content rendered must depend on the device that is requesting the page.What are two possible ways to achieve this goal? ()

A. Add custom controls that emit XHTML to the Web Form.

B. Add custom controls that emit WML to the Web Form.

C. Add mobile controls to the Web Form.

D. Add Web server controls to the Web Form.


参考答案:C, D

第7题:

You create a Web Form. You need to add controls that use adaptive rendering to display content. The type of content rendered must depend on the device that is requesting the page. What are two possible ways to achieve this goal?()

  • A、Add custom controls that emit XHTML to the Web Form.
  • B、Add custom controls that emit WML to the Web Form.
  • C、Add mobile controls to the Web Form.
  • D、Add Web server controls to the Web Form.

正确答案:C,D

第8题:

你创建了一个名为Template.master的母版页。Template.master包含了如下的ContentPlaceHolder 服务器控件。你创建了10个Web窗体,它们都使用Template.master作为母版页。每个Web窗体有如下的Content控件和母版页的ContentPlaceHolder控件进行对应。现在,你需要配置Web页,使其当Web窗体没有提供content的时候,默认的内容将显示在area2ContentPlaceHolder控件中。你应该怎么做?()

A. 在Template.master 中,移动默认内容到area2中。从不提供内容的Web窗体中移除area2。

B. 在Template.master 中,移动默认内容到area2中。在不提供内容的Web窗体中留下空白的 area2 Content声明。

C. 在Web窗体中,移动默认内容到area2中。在Template.master 中移除area2。

D. 在Template.master中创建一个名为area2_default 的ContentPlaceHolder 控件。然后,放 默认内容在area2_default中。从不提供内容的Web窗体中移除area2。


参考答案:A

第9题:

You create a Web Form that contains a button named btnCancel that enables users to exit the page. When users click this button, validation must not occur. During testing you learn that clicking the Cancel button does not enable users to exit the page. You need to ensure that users can always exit the page. What should you do?()

  • A、Set the Enabled property of the validation controls on the Web Form to False.
  • B、Set the CausesValidation property of the btnCancel button to False.
  • C、Set the CausesValidation property of the btnCancel button to True.
  • D、Set the Visible property of the validation controls on the Web Form to False.

正确答案:B

第10题:

You need to design a configuration for the Microsoft Outlook Web Access servers. What should you do?()

  • A、Create a Network Load Balancing cluster that contains the Outlook Web Access servers
  • B、Create a Microsoft Cluster Server cluster that contains the Outlook Web Access servers
  • C、Create public DNS host (A) resource records for each Outlook Web Access server. Instruct each user to connect to the server that contains his or her mailbox
  • D、Install Microsoft Application Center 2000 on the Outlook Web Access servers. Create a Web cluster that contains all of the Outlook Web Access servers

正确答案:A

更多相关问题