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

题目
多选题
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.


相似考题
更多“You are developing a Web application. The Web application re”相关问题
  • 第1题:

    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

  • 第2题:

    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

  • 第3题:

    单选题
    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
    解析: 暂无解析

  • 第4题:

    多选题
    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
    解析: 暂无解析

  • 第5题:

    多选题
    You are designing a Windows Azure web application.  All users authenticate by using their Active Directory Domain Services (AD DS) credentials.  You need to recommend an approach for enabling single sign-on for domain-authenticated users.   Which two actions should you recommend?()
    A

    Use Forms authenticationto generate claims.

    B

    Use Active Directory Federation Services (AD FS) to generate claims.

    C

    Use SqlMembershipProvider in the web application.

    D

    Use Windows Identity Foundation in the web application.


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

  • 第6题:

    单选题
    You want to enable users of a Web application to modify the Web application's UI and behavior. These modifications must be maintained at the user level so that when users return to the Web application, the changes are still in effect. You need to achieve this goal by using the minimum amount of custom code. What should you do?()
    A

    Persist control data by using view state.

    B

    Use Web Part controls.

    C

    Maintain a profile for each user.

    D

    Enable session state on the Web application.


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

  • 第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题:

    多选题
    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.


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

  • 第9题:

    单选题
    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
    解析: 暂无解析

  • 第10题:

    单选题
    You manage a server that runs Windows Server 2008. The server has the Web Server (IIS) role installed. The Web developer at your company creates a new Web site that runs an ASP.NET 3.0 Web application.  The ASP.NET Web application must run under a security context that is separate from any other ASP.NET application on the Web server.  You create a local user account and grant account rights and permissions to run the ASP.NET Web application.  You need to configure authentication for the new Web site to support the Web application. What should you do?()
    A

    Configure the Windows Authentication setting to Enabled.

    B

    Configure the Forms Authentication setting to Enabled by using all the default settings.

    C

    Configure the ASP.NET State service to log on to the new local user account by using the Services console.

    D

    Configure the ASP.NET Impersonation setting to Enabled. Edit the ASP.NET Impersonation setting by specifying the new local user account.


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

  • 第11题:

    单选题
    You are developing an ASP.NET MVC 2 Web application. A page makes an AJAX request and expects a list of company names in the following format. ["Adventure Works","Contoso"] You need to write an action method that returns the response in the correct format. Which type should you return from the action method?()
    A

    AjaxHelper

    B

    XDocument

    C

    JsonResult

    D

    DataContractJsonSerializer


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

  • 第12题:

    多选题
    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.


    正确答案: E,F
    解析: 暂无解析