Add a TraceContextEventHandler to the Trace.TraceFinished event to add the trace records into the database.
Add a system.diagnostics section to the Web.config file. Then add a listener to the new section.
Use the System.Diagnostics.Trace object to connect to a database. Then insert the trace records.
In the Page_Load for the page, place the Trace.Write call into a SQL INSERT statement.
第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?()
第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?()
第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?()
第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?()
第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? ()
第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?()
第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?()
第8题:
Ini
Load
PreInit
PreLoad
第9题:
<%@Page strict = true %>
<%@Page enableViewStateMac = true %>
<%@Page EnableEventValidation = true %>
<%@Page Aspcompact = true %>
第10题:
Source
Print direction
Maximum records per page
Minimum Widow records
Column mode
第11题:
Set the Turn off InPrivate Filtering state to Enabled, and set the Disable the General Page state to Enabled.
Set the Turn off InPrivate Browsing state to Enabled, and set the Disable the General Page state to Enabled.
Set the Disable the Advanced Page state to Enabled, and set the Turn off InPrivate Browsing state to Enabled.
Set the Disable the General Page state to Enabled, and set the Disable the Advanced Page state to Enabled.
第12题:
SetPage.MasterPageFile in the Page’sPage_Initevent.
SetPage.MasterPageFile in the Page’sOnInit event.
SetPage.MasterPageFile in the Page’sPage_Loadevent.
SetPage.MasterPageFile in the Page’sPage_PreInitevent.
第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? ()
第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?()
第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? ()
第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?()
第17题:
You are developing an ASP.NET Web page. The page includes a List
第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? ()
第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?()
第20题:
<% Page EnableViewState=”true” ViewStateMode=”Enabled” _ %>
<% Page EnableViewState=”true” ViewStateMode=”Disabled” _ %>
<% Page EnableViewState=”false” ViewStateMode=”Disabled” _ %>
<% Page EnableViewState=”false” ViewStateMode=”Enabled” _ %>
第21题:
for more information about the product.
to find out extra costs.
to see about the conditions of possible discount.
第22题:
the EnableEventValidation attribute
the ResponseEncoding attribute
the ValidateRequest attribute
the Strict attribute
第23题:
Add a TraceContextEventHandler to the Trace.TraceFinished event to add the trace records into the database.
Add a system.diagnostics section to the Web.config file. Then add a listener to the new section.
Use the System.Diagnostics.Trace object to connect to a database. Then insert the trace records.
In the Page_Load for the page, place the Trace.Write call into a SQL INSERT statement.