In the init method.
In the jspInit method.
In the constructor of the JSP’s Java code.
In a JSP declaration, which includes an initializer block.
In a JSP declaration, which includes a static initializer block.
第1题:
Which three occur during JSP page translation?()
第2题:
You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the
第3题:
You create a Web Form that allows users to create a new account. You add a CreateUserWizard control by using the following code segment. You need to ensure that the wizard automatically sends an e-mail message to users when they finish creating their accounts. You add a valid
第4题:
You are creating a custom user control. The custom user control will be used on 10 Web Forms for an ASP.NET Web site that allows users to register and log on to a personalized experience. The custom user control uses two TextBox controls and two Button controls. You need to ensure that the controls are visible only when users are not logged on to the Web site. You also need to minimize the amount of effort in development and maintenance for the Web site. Which two actions should you perform? ()
第5题:
You create a Web page named TestPage.aspx and a user control named TestUserControl.ascx. TestPage.aspx uses TestUserControl.ascx as shown in the following line of code.
第6题:
You are developing an ASP.NET Web page. The page includes a List
第7题:
<jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:include>
<jsp:import page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:import>
<jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:include>
<jsp:import page=’/WEB-INF/jsp/header.jsp’>. <jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:import>
第8题:
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.
第9题:
Add the following line of code to the TestUserControl.ascx.cs code-behind file. public string CityName { get { return New York; } }
Add the following line of code to the TestUserControl.ascx.cs code-behind file. protected readonly string CityName = New York;
Add the following code segment to the TestPage.aspx.cs code-behind file. protected void Page_Load(object sender, EventArgs e) { string s = testControl.CityName; }
Add the following code segment to the TestPage.aspx.cs code-behind file. protected void Page_Load(object sender, EventArgs e) { string s = testControl.Attributes[CityName]; }
第10题:
the EnableEventValidation attribute
the ResponseEncoding attribute
the ValidateRequest attribute
the Strict attribute
第11题:
Id
Val
Name
Param
Value
Property
第12题:
<%@ page isThreadSafe=’false’ %>
<%@ implements SingleThreadModel %>
<%! implements SingleThreadModel %>
<%@ page useSingleThreadModel=’true’ %>
<%@ page implements=’SingleThreadModel’ %>
第13题:
You have created a JSP that includes instance variables and a great deal of scriptlet code. Unfortunately,after extensive load testing, you have discovered several race conditions in your JSP scriptlet code. To fixthese problems would require significant recoding, but you are already behind schedule. Which JSP codesnippet can you use to resolve these concurrency problems?()
第14题:
You are developing an inventory report to list the item number, description price and picture of all inventory items. The layout of each item is a repeating frame that contains three fixed fields and a image. When possible you want all objects in the repeating frame to appear on the same logical page without creating blank pages between instances. Which pagination property would you alter to achieve these results?()
第15题:
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? ()
第16题:
You are testing an existing ASP.NET page. The page includes a text box. You are able to execute malicious JavaScript code by typing it in the text box and submitting. You need to configure the page to prevent JavaScript code from being submitted by the text box. In the @ Page directive, which attribute should you set to true?()
第17题:
You are creating an undo buffer that stores data modifications.You need to ensure that the undo functionality undoes the most recent data modifications first.You also need to ensure that the undo buffer permits the storage of strings only.Which code segment should you use?()
第18题:
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a page that contains the following code fragment. | English | Chinese | Japan | Korean | - 92 - Test Information Co., Ltd. All rights reserved.
第19题:
The jspInit method is called.
The JSP page implementation class is created.
The JSP page implementation class is compiled.
The JSP page is validated for syntatic correctness.
The associated tag files are validated for syntatic correctness.
第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题:
Add the OnClick event handler for the Login button to the code used in the custom user control.
Add the OnClick event handler for the Login button to the code used in the Web Form where the control is added.
In the Page_Load method of the Web Form, add a code segment to set the visibility of the TextBox and Button controls where the control is added.
In the Page_Load method of the custom user control, add a code segment to set the visibility of the TextBox and Button controls.
第22题:
Wizard1.RequireEmail = True
Wizard1.Email = user@address.com
Wizard1.MailDefinition.From = registration@mysite.com
SmtpMail.SmtpServer = mail.contoso.com
第23题:
<jsp:insert page=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:insert>
<jsp:include page=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:include>
<jsp:include file=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:include>
<jsp:insert page=’/WEB-INF/jsp/header.jsp’>. <jsp:param name=’pageTitle’ value=’Welcome Page’ /> . </jsp:insert>
<jsp:include page=’/WEB-INF/jsp/header.jsp’>. <jsp:param name=’pageTitle’ value=’Welcome Page’ /> . </jsp:include>