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


相似考题
更多“You are developing a Web application. Your code restricts ac”相关问题
  • 第1题:

    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

  • 第2题:

    You are developing an ASP.NET Web page. The page includes a List instance. You add a FormView control to display a single Product from this list. You need to bind the list to the FormView control. Which FormView property should you set in the code-behind file?()

    • A、DataSource
    • B、DataSourceID
    • C、DataKeyNames
    • D、DataMember

    正确答案:A

  • 第3题:

    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

  • 第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. Which two additional actions should you perform?()

    • A、Use Aspnet_regsql.exe to create the Microsoft SQL Server database.
    • B、Set Login1's MembershipProvider property to MySqlProviderConnection.
    • C、Add the following code segment to the Web.config file.<connectionStrings> <add name="MySqlProviderConnection" connectionString="valid connection string" /></connectionStrings>
    • D、Add the following code segment to the Web.config file.  <appSettings><add key="MySqlProviderConnection" value="valid connection string" /></appSettings>
    • E、In the ASP.NET configuration settings within IIS, ensure that Role Management Enabled is selected.
    • F、Use the Web Site Administration Tool to select AspNetSqlMembershipProvider as the membership provider for your application.

    正确答案:B,D

  • 第5题:

    单选题
    You are developing an ASP.NET MVC 2 application. A view contains a form that allows users to submit their first name. You need to display the value that is submitted, and you must ensure that your code avoids cross-site scripting. Which code segment should you use?()
    A

    <%: Model.FirstName %>

    B

    <%= Model.FirstName %> 

    C

    <% Response.Write(Model.FirstName) %>  

    D

    <% Response.Write(HttpUtility.HtmlDecode(Model.FirstName)) %> 


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

  • 第6题:

    单选题
    You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You plan to deploy the application to a test server.  You need to ensure that during the initial request to the application, the code-behind files for the Web pages are compiled. You also need to optimize the performance of the application.  Which code fragment should you add to the Web.config file?()
    A

    <compilation debug=true> 

    B

    <compilation debug=false> 

    C

    <compilation debug=true batch=true> 

    D

    <compilation debug=false batch=false>


    正确答案: 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" 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
    解析: 暂无解析

  • 第8题:

    单选题
    You are developing a Hotel Booking application for a travel company. The users request a wizard-style interface for this application. How could you satisfy this requirement?()
    A

    Reference the Object Iron packages in your form module. 

    B

    Write an HTML interface, and invoke it from your form module. 

    C

    Include the Wizard class reusable component in your application. 

    D

    Build a customized wizard using tab canvases and a horizontal toolbar canvas.


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

  • 第9题:

    单选题
    You deploy your companys Internet Web site. You need to deny anonymous access to the Web site, allowing only authenticated users. Which code segment should you use?()
    A

    <authorization> <allow users=?/> </authorization>

    B

    <authorization> <deny users=?/> </authorization>

    C

    <authorization> <deny users=*/></authorization>

    D

    <authorization> <allow users=*/> </authorization>


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

  • 第10题:

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

  • 第11题:

    You are developing an ASP.NET application by using Visual Studio 2010. You need to interactively debug the entire application. Which two actions should you perform? ()

    • A、Set the Debug attribute of the compilation node of the web.config file to true.
    • B、Add a DebuggerDisplay attribute to the code-behind file of the page that you want to debug.
    • C、Select the ASP.NET debugger option in the project properties.
    • D、Define the DEBUG constant in the project settings.

    正确答案:A,C

  • 第12题:

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

    • A、XCOPY
    • B、the Copy Web tool
    • C、the Publish Web tool
    • D、a Web Setup project

    正确答案:B

  • 第13题:

    You are developing an ASP.NET Web application. You create a master page. The master page requires a region where you can add page-specific content by using theASP.NET page designer. You need to add a control to the master page to define the region. Which control should you add?()

    • A、PlaceHolder
    • B、ContentPlaceHolder
    • C、Content
    • D、Substituition

    正确答案:B

  • 第14题:

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

    • A、Your best option would be to insert Page.RegisterRequiresPostBack(this)
    • B、Your best option would be to insert Page.RegisterRequiresControlState(this)
    • C、Your best option would be to insert Page.UnregisterRequiresControlState(this)
    • D、Your best option would be to insert Page.RegisterStartupScript("KingShare","server")

    正确答案:B

  • 第15题:

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

  • 第16题:

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

  • 第17题:

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

    XCOPY

    B

    the Copy Web tool

    C

    the Publish Web tool

    D

    a Web Setup project


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

  • 第18题:

    单选题
    You are developing an ASP.NET Dynamic Data Web application. Boolean fields must display as Yes or No instead of as a check box. You replace the markup in the default Boolean field template with the following markup.You need to implement the code that displays Yes or No. Which method of the FieldTemplateUserControl class should you override in the BooleanField class?()
    A

    OnLoad

    B

    Construct

    C

    OnDataBinding

    D

    SaveControlState


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

  • 第19题:

    单选题
    You are developing an application that runs by using the credentials of the end user. Only users who are members of the Administrator group get permission to run the application. You write the following security code to protect sensitive data within the application.bool isAdmin=false;  WindowsBuiltInRole role=WindowsBuiltInRole.Administrator; ......  if(!isAdmin)          throw new Exception("User not permitted");   You need to add a code segment to this security code to ensure that the application throws an exception if a user is not a member of the Administrator group. Which code segment should you use?()
    A

    A

    B

    B

    C

    C

    D

    D


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