Set Page.MasterPageFile in the Page's Page_Init event.
Set Page.MasterPageFile in the Page's OnInit override.
Set Page.MasterPageFile in the Page's Page_Load event.
Set Page.MasterPageFile in the Page's Page_PreInit event.
第1题:
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?()
第2题:
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? ()
第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 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?()
第4题:
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?()
第5题:
Configure the SqlMembershipProvider in the web.config file.
Configure the SqlProfileProvider in the web.config file.
Create an ASP.NET page that contains a default CreateUserWizard control to create a new user account.
Create 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.
第6题:
Page.RegisterRequiresPostBack(Me)
Page.RegisterRequiresControlState(Me)
Page.UnregisterRequiresControlState(Me)
Page.RegisterStartupScript(SharedControl, server)
第7题:
In the Web.config file of the application,set the Theme attribute of the pages element to the name of the theme.
In the Web.config file of the application,set the StyleSheetThemeattribute of the pages element to the name of the theme.
Add a master page to the application. In the @Master directive,set the Theme attribute to the name of the theme.
Add a master page to the application. In the @Master directive,set the StyleSheetTheme attribute to the name of the theme.
第8题:
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.
第9题:
You should consider adding the Page.RegisterRequiresControlState(Me) code fragment.
You should consider adding the Page.UnregisterRequiresControlState(Me) code fragment.
You should consider adding the Page.RegisterStartupScript(TestShare, server) codefragment.
You should consider adding the Page.RegisterRequiresPostBack(Me) code fragment.
第10题:
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? ()
第11题:
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?()
第12题:
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?()
第13题:
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?()
第14题:
Page.RegisterRequiresPostBack(this);
Page.RegisterRequiresControlState(this);
Page.UnregisterRequiresControlState(this);
Page.RegisterStartupScript(SharedControl,server);
第15题:
Place a theme in the App_Themes directory under the application root directory.
Place a theme under an ASP.NETClientFiles folder under the ASP.NET installation directory.
Assign a theme by setting the <%@ Page Theme=... %> directive to the name of the application theme.
Assign a theme by specifying the <pages theme=.../> section in the Web.config file.
第16题:
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)
第17题:
Create a single Web site that contains both Web applications.
Create two Web sites, one for each Web application.
Assign both Web applications to the same application pool.
Assign each Web application to its own application pool.