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

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.

查看答案
如搜索结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能会需要:
您的账号:
发送账号密码至手机
发送
更多“You create a Web application. …”相关的问题

第1题

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.

点击查看答案

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

点击查看答案

第3题

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.

点击查看答案

第4题

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

点击查看答案

第5题

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.resx myStrings.en-CA.resx myString.en-US.resx myStrings.fr-CA.resx myStrings.es-MX.resxEach 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.

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;

点击查看答案

第6题

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:It must impersonate the user when it writes data to the file.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. Dim wp As WindowsPrincipal = _CType(HttpContext.Current.User, WindowsPrincipal) Dim wi As WindowsIdentity = WindowsIdentity.GetCurrent() Dim wic As WindowsImpersonationContext = wi.Impersonate()‘ Access the file herewic.Undo()

D. Use the following code segment to access the file. Dim wi As WindowsIdentity = WindowsIdentity.GetCurrent()Dim wic As WindowsImpersonationContext = _WindowsIdentity.Impersonate(wi.Token)‘ Access the file herewic.Undo()

点击查看答案

第7题

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

点击查看答案

第8题

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.

点击查看答案

第9题

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.

点击查看答案

第10题

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.

点击查看答案
热门考试 全部 >
相关试卷 全部 >
账号:
你好,尊敬的上学吧用户
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
谢谢您的反馈

您认为本题答案有误,我们将认真、仔细核查,
如果您知道正确答案,欢迎您来纠错

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

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

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