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="C#" Src="~/article.master.cs" 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? ()
第1题:
You have a master page custom.master ... u create a nested.master page using it ... and then u have content page that uses the nested.master as its master page ... to get a string prop from custom.master into a label in content page the code u wud use()
第2题:
You develop a Web application that contains two master pages. You need to dynamically set the master page when a user views pages in the application. What should you do? ()
第3题:
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a custom Web user control named SharedControl. The control will be compiled as a library. You write the following code segment for the SharedControl control. (Line numbers are included for reference only.) 01 protected override void OnInit(EventArgs e) 02 { 03 base.OnInit(e); 04 05 } All the master pages in the ASP.NET application contain the following directive. <%@ Master Language="C#" EnableViewState="false" %> You need to ensure that the state of the SharedControl control can persist on the pages that reference a | English | Chinese | Japan | Korean | - 87 - Test Information Co., Ltd. All rights reserved. master page. Which code segment should you insert at line 04?()
第4题:
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? ()
第5题:
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a custom Web user control named SharedControl. The control will be compiled as a library. You write the following code segment for the SharedControl control. (Line numbers are included for reference only.) 01 Protected Overloads Overrides Sub OnInit(ByVal e As EventArgs) 02 MyBase.OnInit(e) 03 04 End Sub All the master pages in the ASP.NET application contain the following directive. <%@ Master Language="VB" EnableViewState="false" %> You need to ensure that the state of the SharedControl control can persist on the pages that reference a master page. Which code segment should you insert at line 03?()
第6题:
You work as a Web Application Developer at Certkiller.com. You make use of .NET Frameworkv3.5 to create an ASP.NET application. You decide to create a Web user control named KingShare. KingShare is compiled as a library.The code segment below is written for KingShare. (The line numbers is included for reference purposes) 1 protected override void OnInit(EventArgs e) 2 { 3 base.OnInit(e); 4 5 } The master pages in the application contains the <%@ Master Language="C#" EnableViewState="false" %> directive. You receive an instruction from the network administratorto make sure that the KingShare state is able to persist on the pages that reference the masterpage. You should thus identify the appropriate code segment you need to add to line 4 to achievethis. What should you do?()
第7题:
Ini
Load
PreInit
PreLoad
第8题:
Add the following directive to TestPage.aspx. <%@ MasterType VirtualPath=~/TestMaster.master %><%@ mastertype="" virtualpath="~/TestMaster.master">
Add the following directive to TestPage.aspx. <%@ PreviousPageType VirtualPath=~/TestMaster.master %><%@ 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.
第9题:
Page.RegisterRequiresPostBack(this);
Page.RegisterRequiresControlState(this);
Page.UnregisterRequiresControlState(this);
Page.RegisterStartupScript(SharedControl,server);
第10题:
Your best option would be to insert Page.RegisterRequiresPostBack(this)
Your best option would be to insert Page.RegisterRequiresControlState(this)
Your best option would be to insert Page.UnregisterRequiresControlState(this)
Your best option would be to insert Page.RegisterStartupScript(KingShare,server)
第11题:
Move default content inside area2 in Template.master. Remove area2 from Web Forms that do not provide content.
Move default content inside area2 in Template.master. Leave area2 blank in Web Forms that do not provide content.
Move default content inside area2 in the Web Forms. Remove area2 from Template.master.
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.
第12题:
SetPage.MasterPageFile in the Page’sPage_Initevent.
SetPage.MasterPageFile in the Page’sOnInit event.
SetPage.MasterPageFile in the Page’sPage_Loadevent.
SetPage.MasterPageFile in the Page’sPage_PreInitevent.
第13题:
You create a Web page named TestPage.aspx and a user control named contained in a file named TestUserControl.ascx.You need to dynamically add TestUserControl.ascx to TestPage.aspx. Which code segment should you use?()
第14题:
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?()
第15题:
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? ()
第16题:
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 theASP.NET page designer. You need to add a control to the master page to define the region. Which control should you add?()
第17题:
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a custom Web user control named SharedControl. The control will be compiled as a library. You write the following code segment for the SharedControl control: 01 protected override void OnInit(EventArgs e) 02 { 03 base.OnInit(e); 04 ► 05 } All the master pages in the ASP.NET application contain the following directive. <%@ Master Language="C#" EnableViewState="false" %> You need to ensure that the state of the SharedControl control can persist on the pages that reference a master page. Which code segment should you insert at line 04?()
第18题:
You develop a Web application that contains two master pages. You need to dynamically set the master page when a user views pages in the application. What should you do?()
第19题:
master.master
parent.master
this.master
unknown
第20题:
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.Region
第21题:
Page.RegisterRequiresPostBack(Me)
Page.RegisterRequiresControlState(Me)
Page.UnregisterRequiresControlState(Me)
Page.RegisterStartupScript(SharedControl, server)
第22题:
You should use the page directive: <%@ Page StyleSheetTheme=App_Themes.Dark/>
You should use the page directive: <%@ Page Theme=App_Themes.Dark/>
You should use the page directive: <%@ Page Theme=Dark/>
You should use the page directive: <%@ Page StyleSheetTheme=Dark/>
第23题:
<%@ Page Language=VB Theme=article%>
<%@ Page Language=VB MasterPageFile=~/article.master%>
<%@ Page Language=VB ie:MasterPageFile=~/article.master%>
<%@Page Language=VB all:MasterPageFile=~/article.master%>