You are developing a Web application. The Web application re

题目
多选题
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? ()
A

In the Web.config file, enable impersonation.

B

In IIS, enable anonymous access.

C

In IIS, disable anonymous access.

D

In the Web.config file, set the authentication mode to Windows.

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You create a Microsoft ASP.NET Web application by using the Microsoft .NET Framework version 3.5.  When you review the application performance counters, you discover that there is an unexpected increase in the value of the Application Restarts counter. You need to identify the reasons for this increase.  What are three possible reasons that could cause this increase?()

  • A、Restart of the Microsoft IIS 6.0 host. 
  • B、Restart of the Microsoft Windows Server 2003 that hosts the Web application. 
  • C、Addition of a new assembly in the Bin directory of the application. 
  • D、Addition of a code segment that requires recompilation to the ASP.NET Web application. 
  • E、Enabling of HTTP compression in the Microsoft IIS 6.0 manager for the application. 
  • F、Modification to the Web.config file in the <system.web> section for debugging the application.

正确答案:C,D,F

第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? ()

  • A、Modify the application settings by using the Web Site Administration Tool.
  • B、Modify the application settings by using the Visual Studio property page editor for the project.
  • C、Modify the application settings by using the resource editor.
  • D、Modify the application settings by using the Visual Studio start options editor.

正确答案:A

第3题:

Exhibit: You are developing a Web application. The Web application uses a GridView control to display data. You build your Web Forms for the Web application by dragging and dropping tables from the Data Connections tree in Server Explorer. You need to add a connection to your data by using the Add Connection dialog box as shown in the exhibit. During the process, you need to configure the .NET Data Provider that you use to create the data source objects. What should you do?()

A. Right-click the connection, and click Properties. Modify the Provider property of the data connection.

B. Click the Change button, and change the data provider for the selected data source.

C. Click the Advanced button, and change the Data Source property to the target provider.

D. Click the Advanced button, and change the Application Name property to the target provider.


参考答案:B

第4题:

单选题
You are developing a Web application. Your code restricts access to some pages based on the users credentials. You need to configure IIS to supply the user's Windows credentials to your Web application. These credentials must be encrypted. What should you do? ()
A

Enable Anonymous access. Enable Integrated Windows authentication.

B

Enable Anonymous access. Enable Basic authentication.

C

Disable Anonymous access. Enable Integrated Windows authentication.

D

Disable Anonymous access. Enable Basic authentication.


正确答案: A
解析: 暂无解析

第5题:

You create a Web application. The Web application enables users to change fields in their personal profiles. Some of the changes are not persisting in the database. You need to raise a custom event to track each change that is made to a user profile so that you can locate the error. Which event should you use?()

  • A、WebAuditEvent
  • B、WebEventManager
  • C、WebBaseEvent
  • D、WebRequestEvent

正确答案:C

第6题:

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?()

  • A、Ensure that the Web control inherits from the WebControl class.
  • B、Ensure that the Web control inherits from the Control class.
  • C、Ensure that the Web control inherits from the CompositeControl class.
  • D、Ensure that the Web control inherits from the UserControl class.

正确答案:D

第7题:

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? ()

  • A、In the Web.config file, enable impersonation.
  • B、In IIS, enable anonymous access.
  • C、In IIS, disable anonymous access.
  • D、In the Web.config file, set the authentication mode to Windows.

正确答案:C,D

第8题:

A customer wants to improve the availability of a web application and provide more predictable scalability when scaling out the application.    Which Feature of WebLogic should you recommend to help solve this problem?()

  • A、Oracle Web Grid
  • B、ActiveCache
  • C、Coherence Grid Edition
  • D、WebLogic Session Replication
  • E、Coherence Web Edition

正确答案:C

第9题:

单选题
A customer wants to improve the availability of a web application and provide more predictable scalability when scaling out the application.    Which Feature of WebLogic should you recommend to help solve this problem?()
A

Oracle Web Grid

B

ActiveCache

C

Coherence Grid Edition

D

WebLogic Session Replication

E

Coherence Web Edition


正确答案: B
解析: 暂无解析

第10题:

多选题
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? ()
A

In the Web.config file, enable impersonation.

B

In IIS, enable anonymous access.

C

In IIS, disable anonymous access.

D

In the Web.config file, set the authentication mode to Windows.


正确答案: B,C
解析: 暂无解析

更多相关问题