题目内容 (请给出正确答案)
[主观题]

You create a Web application. You need to turn on Tracing for a page that is not performin

g 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.

提问人:网友shenquan619 发布时间:2022-01-07
参考答案
查看官方参考答案
如搜索结果不匹配,请 联系老师 获取答案
更多“You create a Web application. …”相关的问题
第1题
In construction of an outline, ________.

A、you need statistics, illustrations, speeches to support the argument.

B、subtopics and sub-subtopics are not necessary to relate to their major topics.

C、each topic or subtopic should not address a distinct idea.

D、each main topic should contain at least two subtopics.

点击查看答案
第2题
You create a Web application to process XML documents. The Web application receives XML document files from several sources, reads them, and stores them in a Microsoft SQL Server database. The Web application parses all incoming data files to ensure that they conform to an XML schema. You need to find all validation errors in the XML document. What should you do? ()

A. Load the XML data by using an instance of the XmlDocument class and specify a location for the application schema.

B. Configure the ValidationEventHandler in the XmlReaderSettings of the XmlReader object.

C. Read the XML file into a DataSet object and set the EnforceConstraints property to True.

D. Read the XML file into a DataSet object. Handle the DataSet.MergeFailed event to parse the data that does not conform to the XML schema.

点击查看答案
第3题
You write a Web application. This application must support multiple languages. You store the localized strings in the application as resources. You want these resources to be accessed according to a users language preference. You create the following resource files in the App_GlobalResources folder of your application.myStrings.resxmyStrings.enCA.resxmyString.en-US.resxmyStrings.fr-CA.resxmyStrings.es-MX.resx resource file stores a localized version of the following strings: Name, E-mail, Address, and Phone. You create a Web Form that contains one label for each of these strings. You need to ensure that the correct localized version of each string is displayed in each label, according to a users language preference. What should you do? ()

A. Add the following configuration section to the Web.config file. <globalization culture="Auto" />

B. Set the directive for each page in your site as follows: <%@ Page UICulture="Auto" %>

C. Add the following code segment to the pages load event. lblName.Text = "{myStrings}Name" lblAddress.Text = "{myStrings}Address" lblEmail.Text = "{myStrings}Email" lblPhone.Text = "{myStrings}Phone"

D. Add the following code segment to the pages load event. lblName.Text = Resources.myStrings.Name lblAddress.Text =Resources.myStrings.Address lblEmail.Text = Resources.myStrings.Email lblPhone.Text = Resources.myStrings.Phone

点击查看答案
第4题
You develop a Web application that writes data to a file on a server. You restrict access to the file to specific Windows users. The Web application runs as CONTOSO\ASPNET. You deny anonymous access to the application in IIS. You add the following XML segment in the Web.config file. You need to ensure that the application meets the following requirements: 1. It must impersonate the user when it writes data to the file 2. It must run as CONTOSO\ASPNET when a user does not access the file. Which two actions should you perform?()

A. Use the following XML segment in the Web.config file.<identity impersonate="false"/>

B. Use the following XML segment in the Web.config file.<identity impersonate="true"/>

C. Use the following code segment to access the file. WindowsPrincipal wp =(WindowsPrincipal)HttpContext,Current.User;WindowsIdentity wt = (WindowsIdentity)wp.Idetity;WindowsImpersonationContext wic = wi.Impersonate();// Access The file herewic.Undo();

D. Use the following code segment to access the file. WindowsIdentity wi = WindowsIdetity.GetCurrent();WindowsImpersonationContext wic = WindowsIdentity.Impersonate(wi.Token);// Access the file herewic.Undo();

点击查看答案
第5题
You create a Web Form that contains a TreeView control. The TreeView control allows users to navigate within the Marketing section of your Web site. The following XML defines the site map for your site. You need to bind the TreeView control to the site map data so that users can navigate only within the Marketing section. Which three actions should you perform? ()

A. Add a SiteMapDataSource control to the Web Form and bind the TreeView control to it.

B. Add a SiteMapPath control to the Web Form and bind the TreeView control to it.

C. Embed the site map XML within the SiteMap node of a Web.sitemap file.

D. Embed the site map XML within the AppSettings node of a Web.config file.

E. Set the StartingNodeUrl property of the SiteMapDataSource control to ~/Marketing.aspx.

F. Set the SkipLinkText property of the SiteMapPath control to Sales.

点击查看答案
第6题
You create a Web Form that contains connected Web Parts. You write the following declaration in your Web Form. You need to ensure that your Web Part connection is valid. Which two actions should you perform? ()

A. Include a data source identified as "WebPartConnection1" on the Web Form.

B. Include a Web Part identified as "customerPart" on the Web Form.

C. Include a Web Part identified as "ordersPart" on the Web Form.

D. Ensure that you declare an interface named "IOrdersPart".

E. Ensure that you declare an interface named "ICustomerPart".

F. Ensure that each Web Part declares either a GetInterface or ProvideInterface method.

点击查看答案
第7题
You create a master page named Template.master. Template.master contains the following ContentPlaceHolder server controls. You also create 10 Web Forms. The Web Forms reference Template.master as their master page. Each Web Form has the following Content controls that correspond to the ContentPlaceHolder controls in Template.master. You need to configure the Web pages so that default content will be shown in the area2 ContentPlaceHolder control whenever a Web Form does not provide that content. What should you do? ()

A. Move default content inside area2 in Template.master. Remove area2 from Web Forms that do not provide content.

B. Move default content inside area2 in Template.master. Leave area2 blank in Web Forms that do not provide content.

C. Move default content inside area2 in the Web Forms. Remove area2 from Template.master.

D. Create an additional ContentPlaceHolder control in Template.master named area2_default. Place default content inside area2_default. Remove area2 from Web Forms that do not provide content.

点击查看答案
第8题
You create a Web Form. The Web Form allows users to calculate values and display the results in a label named lblResults. You need to capture all unhandled exceptions on the Web Form through the Error event. The Error event must capture each unhandled exception and display it on the Web Form. Which code segment should you use?()

A. protected void Page_Error(object sender, EventArgs e) { lblResults.Text = e.ToString(); e=null;}

B. protected void Page_Error(object sender, EventArgs e) { lblResults.Text = Server.GetLastError().ToString(); Server.ClearError();}

C. protected void Page_Error(object sender, EventArgs e) Response.Write(e.ToString()); e=null;}

D. protected void Page_Error(object sender, EventArgs e) Response.Write(Server.GetLastError().ToString()); Server.ClearError();}

点击查看答案
第9题
You have a DHCP server that runs Windows Server 2008 R2. The DHCP server has two network connections named LAN1 and LAN2.You need to prevent the DHCP server from responding to DHCP client requests on LAN2. The server must continue to respond to non-DHCP client requests on LAN2.What should you do?()

A. From the DHCP snap-in, modify the bindings to associate only LAN1 with the DHCP service.

B. From the DHCP snap-in, create a new multicast scope.

C. From the properties of the LAN1 network connection, set the metric value to 1.

D. From the properties of the LAN2 network connection, set the metric value to 1.

点击查看答案
账号:
你好,尊敬的用户
复制账号
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
欢迎分享答案

为鼓励登录用户提交答案,简答题每个月将会抽取一批参与作答的用户给予奖励,具体奖励活动请关注官方微信公众号:简答题

简答题官方微信公众号

警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

微信搜一搜
简答题
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反简答题购买须知被冻结。您可在“简答题”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
简答题
点击打开微信