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题:
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?()
第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 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?()
第4题:
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?()
第5题:
You are developing a Web application. The Web application restricts access to an administrative page. The Web application uses the following code segment to protect the page.If Page.User.Identity.Name <> "CONTOSO/Administrator" Then Response.Redirect("login.aspx")End IfYou are logged on as Administrator. When you display the page, you are redirected to Login.aspx. You discover that the User.Identity.Name property is not being correctly populated. You need to ensure that you can access the page when you are logged on as Administrator. Which two actions should you perform? ()
第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题:
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?()
第8题:
In the InitComplete event handler, set the Theme property of the Page object based on the user profile.
In the PreLoad event handler, set the Theme property of the Page object based on the user profile.
In the OnLoad event handler, set the Theme property of the Page object based on the user profile.
In the PreInit event handler, set the Theme property of the Page object based on the user profile.
第9题:
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.
第10题:
Pass the object data in a hidden field.
Store the object instance in a session variable.
Use a cookie that contains the object data.
Encode the object data and pass it in a query string parameter.
第11题:
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.
第12题:
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.
第13题:
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?()
第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 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?()
第16题:
You are developing a page named Process.aspx in a shopping cart Web application that will be integrated into Certkiller .com's existing e-Commerce Web site. The Process.aspx page allows customers to pay for purchases using their credit cards. The Process.aspx page contains a Button control that confirms the customer's payment and calls an external Web service that charges the customer's credit card. You must implement confirmation and prevent postback unless the customer confirms payment. What should you do?()
第17题:
You are developing a Web application. The Web application restricts access to an administrative page. The Web application uses the following code segment to protect the page.if (Page.User.Identity.Name != @"CONTOSO/Administrator") { the page, you are redirected to Login.aspx. You discover that the User.Identity.Name property is not being correctly populated. You need to ensure that you can access the page when you are logged on as Administrator. Which two actions should you perform? ()
第18题:
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?()
第19题:
You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication. You decide to make use of Microsoft ASP.NET 3.5 in order to create the application. The followingmarkup is present on the page:
第20题:
In the Web.config file, enable impersonation.
In IIS, enable anonymous access.
In IIS, disable anonymous access.
In the Web.config file, set the authentication mode to Windows.
第21题:
You should ensure that a default value for the Status property of the ControlParameter controlis set.
You should ensure that the PropertyName property of the ControlParameter control is set toText.
You should ensure that the ControlParameter control’s ConvertEmptyStringToNull property isset to false.
You should ensure that the {0} placeholder in the FilterExpression property is replaced with the(?) symbol.
第22题:
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)
第23题:
Content
ContentPlaceHolder
PlaceHolder
Substitution
第24题:
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.