网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
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?()
A
SetPage.MasterPageFile in the Page’sPage_Initevent.
B
SetPage.MasterPageFile in the Page’sOnInit event.
C
SetPage.MasterPageFile in the Page’sPage_Loadevent.
D
SetPage.MasterPageFile in the Page’sPage_PreInitevent.
参考答案
参考解析
解析:
暂无解析
更多 “单选题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?()A SetPage.MasterPageFile in the Page’sPage_Initevent.B SetPage.MasterPageFile in the Page’sOnInit event.C SetPage.MasterPageFile in the Page’sPage_Loadevent.D SetPage.MasterPageFile in the Page’sPage_PreInitevent.” 相关考题
考题
You create Web sites for your company. You apply a consistent design to the pages and controls of the Web sites. You need to make style changes to all of the Web sites on the Web server. You want to achieve this goal without having to edit the individual pages on each Web site.Which two actions should you perform?()A. Place a theme in the App_Themes directory under the application root directory.B. Place a theme under an ASP.NETClientFiles folder under the ASP.NET installation directory.C. Assign a theme by setting the %@ Page Theme=... % directive to the name of the application theme.D. Assign a theme by specifying the pages theme=.../ section in the Web.config file.
考题
Certkiller.com has employed you as a Web Application Developer. You are in the process ofcreating an ASP.NET application using Microsoft .NET Framework v3.5. You decide to create acustom Web user control for the application. You name this control TestShare. TestShare will be compiled as a library. The code below iswritten for TestShare. (The line numbers is included for reference purposes) 1 Protected Overloads Overrides Sub OnInit(ByVal e As EventArgs) 2 MyBase.OnInit(e) 3 4 End Sub The master pages in the application contains the directive below:%@ Master Language="VB" EnableViewState="false" % You receive an instruction from management to make sure that the state of TestShare is able tocontinue on the pages that reference a master page. You thus need to determine the appropriatecode that should be added at line 3. What should you identify?()A、You should consider adding the Page.RegisterRequiresControlState(Me) code fragment.B、You should consider adding the Page.UnregisterRequiresControlState(Me) code fragment.C、You should consider adding the Page.RegisterStartupScript("TestShare", "server") codefragment.D、You should consider adding the Page.RegisterRequiresPostBack(Me) code fragment.
考题
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? ()A、Set Page.MasterPageFile in the Page's Page_Init event.B、Set Page.MasterPageFile in the Page's OnInit event.C、Set Page.MasterPageFile in the Page's Page_Load event.D、Set Page.MasterPageFile in the Page's Page_PreInit event.
考题
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?()A、Page.RegisterRequiresPostBack(this);B、Page.RegisterRequiresControlState(this);C、Page.UnregisterRequiresControlState(this);D、Page.RegisterStartupScript("SharedControl","server");
考题
You are developing an ASP.NET Web application. The application must pass an object that contains user-specific data between multiple pages. The object ismore than 100 KB in size when serialized.You need to minimize the amount of data is sent to the user. What should you do?()A、Pass the object data in a hidden field.B、Store the object instance in a session variable.C、Use a cookie that contains the object data.D、Encode the object data and pass it in a query string parameter.
考题
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.
考题
You develop a Web application. Your application contains two settings in the Web.config file. You deploy your application to production. You need to modify the application settings in the production environment without manually editing the XML markup in the Web.config file. What should you do? ()A、Modify the application settings by using the Web Site Administration Tool.B、Modify the application settings by using the Visual Studio property page editor for the project.C、Modify the application settings by using the resource editor.D、Modify the application settings by using the Visual Studio start options editor.
考题
You create a Web site. You add an EditorZone control to the home page on the Web site. You need to enable users to customize the size and location of the Web Parts on their home pages. Which two controls should you add to the EditorZone control?()A、BehaviorEditorPartB、AppearanceEditorPartC、PropertyGridEditorPartD、LayoutEditorPart
考题
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?()A、Page.RegisterRequiresPostBack(Me)B、Page.RegisterRequiresControlState(Me)C、Page.UnregisterRequiresControlState(Me)D、Page.RegisterStartupScript("SharedControl", "server")
考题
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?()A、Page.RegisterRequiresPostBack(this); B、Page.RegisterRequiresControlState(this); C、Page.UnregisterRequiresControlState(this); D、Page.RegisterStartupScript("SharedControl","server");
考题
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?()A、Your best option would be to insert Page.RegisterRequiresPostBack(this)B、Your best option would be to insert Page.RegisterRequiresControlState(this)C、Your best option would be to insert Page.UnregisterRequiresControlState(this)D、Your best option would be to insert Page.RegisterStartupScript("KingShare","server")
考题
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?()A、SetPage.MasterPageFile in the Page’sPage_Initevent.B、SetPage.MasterPageFile in the Page’sOnInit event.C、SetPage.MasterPageFile in the Page’sPage_Loadevent.D、SetPage.MasterPageFile in the Page’sPage_PreInitevent.
考题
多选题You are implementing an ASP.NET Web application. Users will authenticate to the application with an ID. The application will allow new users to register for an account. The application will generate an ID for the user based on the users full name. You need to implement this registration functionality. Which two actions should you perform?()AConfigure the SqlMembershipProvider in the web.config file.BConfigure the SqlProfileProvider in the web.config file.CCreate an ASP.NET page that contains a default CreateUserWizard control to create a new user account.DCreate an ASP.NET page that contains a custom form that collects the user information and then uses the Membership.CreateUser method to create a new user account.
考题
单选题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. 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?()A
Page.RegisterRequiresPostBack(this); B
Page.RegisterRequiresControlState(this); C
Page.UnregisterRequiresControlState(this); D
Page.RegisterStartupScript(SharedControl,server);
考题
单选题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. 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?()A
Page.RegisterRequiresPostBack(Me)B
Page.RegisterRequiresControlState(Me)C
Page.UnregisterRequiresControlState(Me)D
Page.RegisterStartupScript(SharedControl, server)
考题
多选题You create Web sites for your company. You apply a consistent design to the pages and controls of the Web sites. You need to make style changes to all of the Web sites on the Web server. You want to achieve this goal without having to edit the individual pages on each Web site. Which two actions should you perform? ()APlace a theme in the App_Themes directory under the application root directory.BPlace a theme under an ASP.NETClientFiles folder under the ASP.NET installation directory.CAssign a theme by setting the %@ Page Theme=... % directive to the name of the application theme.DAssign a theme by specifying the pages theme=.../ section in the Web.config file.
考题
单选题You modify an existing Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You add a theme to the ASP.NET application. You need to apply the theme to override any settings of individual controls. What should you do?()A
In the Web.config file of the application,set the Theme attribute of the pages element to the name of the theme.B
In the Web.config file of the application,set the StyleSheetThemeattribute of the pages element to the name of the theme.C
Add a master page to the application. In the @Master directive,set the Theme attribute to the name of the theme.D
Add a master page to the application. In the @Master directive,set the StyleSheetTheme attribute to the name of the theme.
考题
单选题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 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?()A
Your best option would be to insert Page.RegisterRequiresPostBack(this)B
Your best option would be to insert Page.RegisterRequiresControlState(this)C
Your best option would be to insert Page.UnregisterRequiresControlState(this)D
Your best option would be to insert Page.RegisterStartupScript(KingShare,server)
考题
单选题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?()A
SetPage.MasterPageFile in the Page’sPage_Initevent.B
SetPage.MasterPageFile in the Page’sOnInit event.C
SetPage.MasterPageFile in the Page’sPage_Loadevent.D
SetPage.MasterPageFile in the Page’sPage_PreInitevent.
考题
多选题You are a systems administrator responsible for managing a Windows Server 2008 Web Server Currently,there are no Web sites configured on the server. You need to configure the server to host two Web applications: Engineering App and Sales App. Both Web applications must be accessible by using HTTPport 80 without the use of host headers. Also, you must protect against problems in one Web applicationaffecting the performance or reliability of the other Web application. Which two steps should you take tomeet these requirements?()ACreate a single Web site that contains both Web applications.BCreate two Web sites, one for each Web application.CAssign both Web applications to the same application pool.DAssign each Web application to its own application pool.
考题
单选题Certkiller.com has employed you as a Web Application Developer. You are in the process ofcreating an ASP.NET application using Microsoft .NET Framework v3.5. You decide to create acustom Web user control for the application. You name this control TestShare. TestShare will be compiled as a library. The code below iswritten for TestShare. (The line numbers is included for reference purposes) 1 Protected Overloads Overrides Sub OnInit(ByVal e As EventArgs) 2 MyBase.OnInit(e) 3 4 End Sub The master pages in the application contains the directive below: You receive an instruction from management to make sure that the state of TestShare is able tocontinue on the pages that reference a master page. You thus need to determine the appropriatecode that should be added at line 3. What should you identify?()A
You should consider adding the Page.RegisterRequiresControlState(Me) code fragment.B
You should consider adding the Page.UnregisterRequiresControlState(Me) code fragment.C
You should consider adding the Page.RegisterStartupScript(TestShare, server) codefragment.D
You should consider adding the Page.RegisterRequiresPostBack(Me) code fragment.
热门标签
最新试卷