Create an HttpSessionListener class and implement the sessionInitialized method with that block ofcode.
Create an HttpSessionActivationListener class and implement the sessionCreated method with thatblock of code.
Create a Filter class, call the getSession(false) method, and if the result was null, then execute that block of code.
Create an HttpSessionListener class and implement the sessionCreated method with that block of code.
第1题:
As an administrator at Cer-tech .com, you install Web server (IIS) role on a server that runs WindowsServer 2008. You created a new site called Cer-tech .com. You need to install an application on thewebsite called web content. You copy the application to the server. What should you do to add theapplication on the website?()
第2题:
You are creating a templated Web control for use in your Web application. You need to add the Web control to your Web application pages without compiling your control into a .dll file. What should you do?()
第3题:
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? ()
第4题:
You create a Web Form. The Web Form allows users to log on to a Web site. You implement the login logic using a Login control named Login1. The membership data for the application is stored in a SQL Express database in the App_Data directory. You need to configure your application so that the membership data is stored in a local Microsoft SQL Server database. You add the following code segment to the Web.config file.
第5题:
<compilation debug=true>
<compilation debug=false>
<compilation debug=true batch=true>
<compilation debug=false batch=false>
第6题:
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.
第7题:
Persist control data by using view state.
Use Web Part controls.
Maintain a profile for each user.
Enable session state on the Web application.
第8题:
You should change the IIS isolation mode.
You should assign the application to another application pool.
You should configure all applications that are part of your application's application pool in orderto use the same version of ASP.NET.
You should run the Aspnet_regiis.exe Tool.
You should restart the application pool that hosts the application.
第9题:
You are creating a new JSP page and you need to execute some code that acts when the page is firstexecuted, but only once. Which three are possible mechanisms for performing this initialization code?()
第10题:
You are working with a team of developers on a Web site. You copy the Web site from the staging server to work on it locally. While making changes, you create new C# source code files and delete old ones. You need to ensure that your changes propagate to the staging server without affecting any files that you have not modified. Which tool should you use? ()
第11题:
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? ()
第12题:
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?()
第13题:
Enable Anonymous access. Enable Integrated Windows authentication.
Enable Anonymous access. Enable Basic authentication.
Disable Anonymous access. Enable Integrated Windows authentication.
Disable Anonymous access. Enable Basic authentication.
第14题:
<authorization> <allow users=?/> </authorization>
<authorization> <deny users=?/> </authorization>
<authorization> <deny users=*/></authorization>
<authorization> <allow users=*/> </authorization>
第15题:
Use Install the application from a file share. Select the Application is available online and offline option.
Use Install the application from CD-ROM or a DVD-ROM. Select the Application will not check for updates option.
Use Install the application from a Web site. Select the Application is available online only option.
Use Install the application from a Web site. Select the Application is available online and offline option.
第16题:
Restart of the Microsoft IIS 6.0 host.
Restart of the Microsoft Windows Server 2003 that hosts the Web application.
Addition of a new assembly in the Bin directory of the application.
Addition of a code segment that requires recompilation to the ASP.NET Web application.
Enabling of HTTP compression in the Microsoft IIS 6.0 manager for the application.
Modification to the Web.config file in the <system.web> section for debugging the application.