题目内容

你创建了一个Web应用。你需要对一个运行不是很好的页面进行跟踪。而且你必须把跟踪信息存储在一个数据库中。为此,你应该通过下面那两个步骤完成?()

A. 为Trace.TraceFinished事件增加跟踪内容事件处理程序,并且把跟踪信息记录到数据库中。
B. 在Web.config文件中增加system.diagnostics配置节,然后在新的节增加一个listener。
C. 使用System.Diagnostics.Trace对象连接到数据库,并且插入跟踪记录到数据库。
D. 在Page_Load事件中,使用Trace.Write插入信息到数据库。

查看答案
更多问题

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a Web form and add the following code fragment. The SqlDataSource1 DataSource control retrieves the Quantity column values from a table named Products. You write the following code segment to create the rptData_ItemDataBound event handler. (Linenumbers are included for reference only.) 01 protected void rptData_ItemDataBound(object sender, 02 RepeaterItemEventArgs e) 03 { 04 05 if(lbl != null) 06 if(int.Parse(lbl.Text)

A. Label lbl = Page.FindControl("lblQuantity") as Label;
B. Label lbl = e.Item.FindControl("lblQuantity") as Label;
C. Label lbl = rptData.FindControl("lblQuantity") as Label;
D. Label lbl = e.Item.Parent.FindControl("lblQuantity") as Label;

你为你的公司创建了一个Web站点。你的站点中包含的页面和控件都使用你一贯的设计。现在,你需要改变服务器上所有Web站点的样式。你需要达到这个目的,但是又不需要编辑各个站点的页面,你应该通过下面那两个步骤完成?()

A. 在应用的根目录下的App_Themes目录下放一个主题。
B. 在AS
C. NET安装目录下的AS
D. NETClientFiles目录下放一个主题文件。
E. 通过设置标记指定一个主题。
F. 在Web.config文件中配置节来指定一个主题。

为应用程序开发人员上班Certkiller.com,Certkiller.com使用VisualStudio.NET2005作为其应用程序开发平台。 您正在开发.NET框架2.0Web应用程序,忙在应用程序中创建的配置对象的继承从应用程序的web.config文件和machine.config文件的设置。 您修改的配置对象设置的几个,并希望配置对象保存到一个名为testconf.config的文件。您需要的不同于继承值写入到配置文件中的值。你应该做什么?()

A. 应调用Save方法上的配置对象
B. 必须将ConfigurationSaveMode.Full值作为参数传递
C. 必须将ConfigurationSaveMode.Modified值作为参数传递
D. 应调用SaveAs方法上的配置对象
E. 应将ConfigurationSaveMode.Minimal值作为参数传递

YournetworkcontainsaWindowsServerUpdateServices(WSUS)server.Allcomputersonthenetworkareconfiguredtodownloadandinstallupdatesonceaweek.YouneedtodeployacriticalupdatetoaWSUSclientassoonaspossible. Whichcommandshouldyourun?()

A. dism.exe/online/check-apppatch
B. gpupdate.exe/force
C. secedit.exe/refreshpolicy
D. wuauclt.exe/detectnow

答案查题题库