多选题You need to turn on Tracing for a page that is not performing well. You must store the trace information in a database for reporting and trending. Which two actions should you perform?()AAdd a TraceContextEventHandler to the Trace.TraceFinished event t

题目
多选题
You need to turn on Tracing for a page that is not performing well. You must store the trace information in a database for reporting and trending. Which two actions should you perform?()
A

Add a TraceContextEventHandler to the Trace.TraceFinished event to add the trace records into the database.

B

Add a system.diagnostics section to the Web.config file. Then add a listener to the new section.

C

Use the System.Diagnostics.Trace object to connect to a database. Then insert the trace records.

D

In the Page_Load for the page, place the Trace.Write call into a SQL INSERT statement.


相似考题
更多“You need to turn on Tracing for a page that is not performin”相关问题
  • 第1题:

    You create an ASP.NET page named TestPage.aspx that contains validation controls. You need to verify that all input values submitted by the user have been validated by testing the Page.IsValid property. Which page event should you add an event handler to?()

    • A、Init
    • B、Load
    • C、PreInit
    • D、PreLoad

    正确答案:B

  • 第2题:

    You need to turn on Tracing for a page that is not performing well. You must store the trace information in a database for reporting and trending. Which two actions should you perform?()

    • A、Add a TraceContextEventHandler to the Trace.TraceFinished event to add the trace records into the database.
    • B、Add a system.diagnostics section to the Web.config file. Then add a listener to the new section.
    • C、Use the System.Diagnostics.Trace object to connect to a database. Then insert the trace records.
    • D、In the Page_Load for the page, place the Trace.Write call into a SQL INSERT statement.

    正确答案:A,B

  • 第3题:

    our company has 1,000 client computers that run Windows 7 Enterprise.    You need to ensure that users cannot bypass or disable Internet Explorer logging.   What should you do?()

    • A、 Set the Turn off InPrivate Filtering state to Enabled, and set the Disable the General Page state to Enabled.
    • B、 Set the Turn off InPrivate Browsing state to Enabled, and set the Disable the General Page state to Enabled.
    • C、 Set the Disable the Advanced Page state to Enabled, and set the Turn off InPrivate Browsing state to Enabled.
    • D、 Set the Disable the General Page state to Enabled, and set the Disable the Advanced Page state to Enabled.

    正确答案:B

  • 第4题:

    You are perfoming security testing on an existing asp.net web page.You notice that you are able to issue unauthorised postback requests to the page. You need to prevent unauthorised post back requests. which page directive you use?()

    • A、<%@Page strict = "true" %>  
    • B、<%@Page enableViewStateMac = "true" %>
    • C、<%@Page EnableEventValidation = "true" %>
    • D、<%@Page Aspcompact = "true" %>

    正确答案:C

  • 第5题:

    You create a master page named Article.master. Article.master serves as the template for articles on your Web site. The master page uses the following page directives. <%@ Master Language="VB" CodeFile="article.master.vb" Inherits="article" %> You need to create a content page that uses the master page as a template. In addition, you need to use a single master page for all devices that access the Web site. Which code segment should you use? ()

    • A、<%@ Page Language="VB" Theme="article"%>
    • B、<%@ Page Language="VB" MasterPageFile="~/article.master"%>
    • C、<%@ Page Language="VB" ie:MasterPageFile="~/article.master"%>
    • D、<%@Page Language="VB" all:MasterPageFile="~/article.master"%>

    正确答案:B

  • 第6题:

    You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application must redirect the original URL to a different ASPX page.  You need to ensure that the users cannot view the original URL after the page is executed. You also need to ensure that each page execution requires only one request from the client browser. What should you do?()

    • A、Use the Server.Transfer method to transfer execution to the correct ASPX page.
    • B、Use the Response.Redirect method to transfer execution to the correct ASPX page.
    • C、Use the HttpContext.Current.RewritePath method to transfer execution to the correct ASPX page.
    • D、Add the Location: new URL value to the Response.Headers collection. Call the Response.End() statement. Send the header to the client computer to transfer execution to the correct ASPX page.

    正确答案:C

  • 第7题:

    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

  • 第8题:

    单选题
    You create an ASP.NET page named TestPage.aspx that contains validation controls. You need to verify that all input values submitted by the user have been validated by testing the Page.IsValid property. Which page event should add an event handler to?()
    A

    Ini

    B

    Load

    C

    PreInit

    D

    PreLoad


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

  • 第9题:

    单选题
    You are perfoming security testing on an existing asp.net web page.You notice that you are able to issue unauthorised postback requests to the page. You need to prevent unauthorised post back requests. which page directive you use?()
    A

    <%@Page strict = true %>  

    B

    <%@Page enableViewStateMac = true %>

    C

    <%@Page EnableEventValidation = true %>

    D

    <%@Page Aspcompact = true %>


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

  • 第10题:

    单选题
    You are creating a tabular report for the sales department with a department break group. You need to ensure that if al least six sales records will not fit at the button of a page, the group will start on the next page. Which printing frame property would you alter to achieve these results?()
    A

    Source 

    B

    Print direction 

    C

    Maximum records per page 

    D

    Minimum Widow records 

    E

    Column mode


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

  • 第11题:

    单选题
    our company has 1,000 client computers that run Windows 7 Enterprise.    You need to ensure that users cannot bypass or disable Internet Explorer logging.   What should you do?()
    A

     Set the Turn off InPrivate Filtering state to Enabled, and set the Disable the General Page state to Enabled.

    B

     Set the Turn off InPrivate Browsing state to Enabled, and set the Disable the General Page state to Enabled.

    C

     Set the Disable the Advanced Page state to Enabled, and set the Turn off InPrivate Browsing state to Enabled.

    D

     Set the Disable the General Page state to Enabled, and set the Disable the Advanced Page state to Enabled.


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

  • 第12题:

    单选题
    You develop a Web application that contains two master pages. You need to dynamically set the master page when a user views pages in the application. What should you do?()
    A

    SetPage.MasterPageFile in the Page’sPage_Initevent.

    B

    SetPage.MasterPageFile in the Page’sOnInit event.

    C

    SetPage.MasterPageFile in the Page’sPage_Loadevent.

    D

    SetPage.MasterPageFile in the Page’sPage_PreInitevent.


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

  • 第13题:

    You create a master page named Article.master. Article.master serves as the template for articles on your Web site. The master page uses the following page directives. <%@ Master Language="C#" Src="~/article.master.cs" Inherits="article" %> You need to create a content page that uses the master page as a template. In addition, you need to use a single master page for all devices that access the Web site. Which code segment should you use? ()

    • A、<%@ Page Language="C#" Theme="article"%>
    • B、<%@ Page Language="C#" MasterPageFile="~/article.master"%>
    • C、<%@ Page Language="C#" ie:MasterPageFile="~/article.master"%>
    • D、<%@Page Language="C#" all:MasterPageFile="~/article.master"%>

    正确答案:B

  • 第14题:

    You are implementing an ASP.NET Web page. The page includes several controls, but only a GridView requires view state. You set the GridView… You need to ensure that the page will omit unneeded view state. Wich @ Page directive should you use?()

    • A、<% Page EnableViewState=”true” ViewStateMode=”Enabled” _ %>
    • B、<% Page EnableViewState=”true” ViewStateMode=”Disabled” _ %>
    • C、<% Page EnableViewState=”false” ViewStateMode=”Disabled” _ %>
    • D、<% Page EnableViewState=”false” ViewStateMode=”Enabled” _ %>

    正确答案:B

  • 第15题:

    You develop a Web application that contains two master pages. You need to dynamically set the master page when a user views pages in the application. What should you do? ()

    • A、Set Page.MasterPageFile in the Page's Page_Init event.
    • B、Set Page.MasterPageFile in the Page's OnInit event.
    • C、Set Page.MasterPageFile in the Page's Page_Load event.
    • D、Set Page.MasterPageFile in the Page's Page_PreInit event.

    正确答案:D

  • 第16题:

    You are testing an existing ASP.NET page. The page includes a text box. You are able to execute malicious JavaScript code by typing it in the text box and submitting. You need to configure the page to prevent JavaScript code from being submitted by the text box. In the @ Page directive, which attribute should you set to true?()

    • A、the EnableEventValidation attribute
    • B、the ResponseEncoding attribute
    • C、the ValidateRequest attribute
    • D、the Strict attribute

    正确答案:C

  • 第17题:

    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

  • 第18题:

    You create a Web application. You need to turn on Tracing for a page that is not performing well. You must store the trace information in a database for reporting and trending. Which two actions should you perform? ()

    • A、Add a TraceContextEventHandler to the Trace.TraceFinished event to add the trace records into the database.
    • B、Add a system.diagnostics section to the Web.config file. Then add a listener to the new section.
    • C、Use the System.Diagnostics.Trace object to connect to a database. Then insert the trace records.
    • D、In the Page_Load for the page, place the Trace.Write call into a SQL INSERT statement.

    正确答案:A,B

  • 第19题:

    You develop a Web application that contains two master pages. You need to dynamically set the master page when a user views pages in the application. What should you do?()

    • A、SetPage.MasterPageFile in the Page’sPage_Initevent.
    • B、SetPage.MasterPageFile in the Page’sOnInit event.
    • C、SetPage.MasterPageFile in the Page’sPage_Loadevent.
    • D、SetPage.MasterPageFile in the Page’sPage_PreInitevent.

    正确答案:D

  • 第20题:

    单选题
    You are implementing an ASP.NET Web page. The page includes several controls, but only a GridView requires view state. You set the GridView… You need to ensure that the page will omit unneeded view state. Wich @ Page directive should you use?()
    A

    <% Page EnableViewState=”true” ViewStateMode=”Enabled” _ %>

    B

    <% Page EnableViewState=”true” ViewStateMode=”Disabled” _ %>

    C

    <% Page EnableViewState=”false” ViewStateMode=”Disabled” _ %>

    D

    <% Page EnableViewState=”false” ViewStateMode=”Enabled” _ %>


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

  • 第21题:

    单选题
    Please refer to page 57 for additional charges.You should turn to page 57
    A

    for more information about the product.

    B

    to find out extra costs.

    C

    to see about the conditions of possible discount.


    正确答案: C
    解析:
    题意:关于附加费用,请参考第57页。关键词为additional charges(附加费用)。与选项C提到的extra cost表达意思相同。

  • 第22题:

    单选题
    You are testing an existing ASP.NET page. The page includes a text box. You are able to execute malicious JavaScript code by typing it in the text box and submitting. You need to configure the page to prevent JavaScript code from being submitted by the text box. In the @ Page directive, which attribute should you set to true?()
    A

    the EnableEventValidation attribute

    B

    the ResponseEncoding attribute

    C

    the ValidateRequest attribute

    D

    the Strict attribute


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

  • 第23题:

    多选题
    You create a Web application. You need to turn on Tracing for a page that is not performing well. You must store the trace information in a database for reporting and trending. Which two actions should you perform? ()
    A

    Add a TraceContextEventHandler to the Trace.TraceFinished event to add the trace records into the database.

    B

    Add a system.diagnostics section to the Web.config file. Then add a listener to the new section.

    C

    Use the System.Diagnostics.Trace object to connect to a database. Then insert the trace records.

    D

    In the Page_Load for the page, place the Trace.Write call into a SQL INSERT statement.


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