Public Sub New(ByVal app As HttpApplication) AddHandler app.EndRequest, AddressOf app_EndRequest End Sub Sub app_EndRequest(ByVal sender As Object, ByVal e As EventArgs) Dim app As HttpApplication = TryCast(sender, HttpApplication) app.Response.Write(footerContent) End Sub
Public Sub Init(ByVal app As HttpApplication) _ Implements IHttpModule.Init AddHandler app.EndRequest, AddressOf app_EndRequest End Sub Sub app_EndRequest(ByVal sender As Object, ByVal e As EventArgs) Dim app As HttpApplication = New HttpApplication() app.Response.Write(footerContent) End Sub
Public Sub New() Dim app As HttpApplication = New HttpApplication() AddHandler app.EndRequest, AddressOf app_EndRequest End Sub Sub app_EndRequest(ByVal sender As Object, ByVal e As EventArgs) Dim app As HttpApplication = TryCast(sender, HttpApplication) app.Response.Write(footerContent) End Sub
Public Sub Init(ByVal app As HttpApplication) _ Implements IHttpModule.Init AddHandler app.EndRequest, AddressOf app_EndRequest End Sub Sub app_EndRequest(ByVal sender As Object, ByVal e As EventArgs) Dim app As HttpApplication = TryCast(sender, HttpApplication)app.Response.Write(footerContent) End Sub
第1题:
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? ()
第2题:
You work as a Web Developer at Certkiller.com. You make use of Microsoft ASP.NET 3.5 in orderto create a Web Site. In a separate code file you create the following class: public static class _Colors { public static Color NormalActivityColor = Color.Green; public static Color WarningActivityColor = Color.Yellow; public static Color ErrorActivityColor = Color.Red; public static Color GetRandomColor() { Random random = new Random((int)DateTime.Now.Ticks); int randomArgbValue = random.Next(); Color color = Color.FromArgb(255, Color.FromArgb(randomArgbValue)); return color; } } You need to ensure that the class is consumed by the Web Site. You have to configure the WebSite project. What should you do?()
第3题:
You work as a Web Developer at Certkiller.com. You create a Web application using MicrosoftASP.NET 3.5. Certkiller.com hosts the application in Microsoft Internet Information Services 7.0. You attempt tobrowse the application and receive the following error message: Service Unavailable HTTP Error 503. The service is unavailable. You check and discover that you are able to browse successfully to other application that formspart of the same IIS Web site. The hosted applications on the network make use of ASP.NET 3.5.There are not previous versions of ASP.NET is installed. You need to resolve this error as soon aspossible. What should you do?()
第4题:
You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform. You create an ASP.NET Web application using .NET Framework 4.0. You create a Web page in the application. The Web page will get large sets of data from a data source. You add a DataPager control to the page. You are required to display navigation controls that enable you to create a custom paging Ul for the DataPager control. What will you do?()
第5题:
You need to implement an authentication method on SQL4. The TravelOnline database will be accessed through a Web services application. You need to make the authentication method as secure as possible.What should you do?()
第6题:
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?()
第7题:
You should run the ServiceModel Metadata Utility tool (Svcutil.exe).
You should change the pipeline mode associated with the application pool that hosts theapplication.
You should run the ASP.NET Registration Tool (Aspnet_regiis.exe).
You should make sure that the application pool that hosts the application is initiated.
第8题:
bool isMember = Roles.GetUsersInRole(Administrators).Any()
bool isMember = Membership.ValidateUser(User.Identity.Name, Administrators)
bool isMember = Roles.GetRolesForUser(Administrators).Any()
bool isMember = User.IsInRole(Administrators)
第9题:
the Microsoft .NET Framework Configuration tool
the Code Access Security Policy tool
the ASP.NET IIS Registration tool
the Web Site Administration Tool
第10题:
aspnet_compiler.exe
InstallUtil.exe
CSC.exe
aspnet_wp.exe
第11题:
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.
第12题:
You create a Web site that you must copy from a development server to a testing server, along with all source files. You do not have terminal access to the testing server. You need to create the virtual directory. Then you must copy the Web site to the virtual directory on the testing server without precompiling the site. What should you do? ()
第13题:
You create a Web site for a customer. You need to deploy the Web site to the customers server without any of the source files for the Web site. You do not want the customer to be able to update any of the static pages on the Web site. Which tool should you use? ()
第14题:
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?()
第15题:
You create a Web site for a customer. You need to deploy the Web site to the customers server without any of the source files for the Web site. You do not want the customer to be able to update any of the static pages on the Web site. Which tool should you use?()
第16题:
You have a Web server named Web1 that runs Windows Server 2003 Service Pack 2 (SP2). Users on the internal network connect to the Web site on Web1 by using the URL http://www.contoso.com. From the Internet, you cannot connect to the Web site by using the URL http://www.contoso.com. You can connect to the Web site by using the public IP address of Web1. You need to ensure that users on the Internet can connect to the Web site on Web1 by using the URL http://www.contoso.com. You deploy a DNS server that is accessible on the Internet. What should you do next?()
第17题:
aspnet_compiler.exe
InstallUtil.exe
CSC.exe
aspnet_wp.exe
第18题:
Use the Publish Web tool.
Use the Copy Web tool.
Use the command line to XCOPY the files.
Create a Web Setup project.
第19题:
XCOPY
the Copy Web tool
the Publish Web tool
a Web Setup project
第20题:
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.
第21题:
Anonymous
Certificate
Forms
Microsoft Windows Integrated Security