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

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



您可能感兴趣的试卷

你可能感兴趣的试题

2.单项选择题你的团队创建了一个Web站点。这个站点需要部署到测试服务器进行性能测试。你计划去完成多次性能改进并且重新进行测试。为此,你需要编译并复制这个Web站点到测试服务器,你应该怎么做?()

A. 用aspnet_compiler.exe 写一个批处理文件。
B. 用InstallUtil.exe 写一个批处理文件。
C. 用Csc.exe 写一个批处理文件。
D. 用 aspnet_wp.exe 写一个批处理文件。

3.多项选择题你创建了一个从WebControl继承的服务器控件。你需要让这个服务器控件能够为一种新型的mobile设备输出markup(标记)。你并不能改变服务器控件的代码。你需要哪两个步骤来实现?()

A. 创建一个从HtmlTextWriter 继承的类并且输出新的markup(标记)。
B. 创建一个从StreamWriter继承的类并且输出新的markup(标记)。
C. 在新设备的browser definition 文件的元素中引用类。
D. 在新设备的browser definition 文件的< controlAdapters >元素中引用类。


4.多项选择题你创建了一个Web窗体。你需要增加能够用适当的呈现方式去显示内容的控件给这个窗体。内容呈现的方式要依赖于请求页面的设备。下面,那两种可能的方法可以达到此目标?()

A.给Web窗体增加能够输出XHTML的自定义控件。
B.给Web窗体增加能够输出WML的自定义控件。
C.给Web窗体增加mobile控件。
D.给Web窗体增加Web服务器控件。

6.单项选择题你正在开发一个 Web 控件。这个 Web 控件在 Web 应用中用来获取用户地址信息。你创建了一个从 CompositeControl 继承的、名为 AddressControl 的类。这个控件由多个子控件组成。你需要确保所有子控件都能正确的输出到浏览器。而且,使用你控件的开发人员必须能够为标签提示设置适当的文本。另外,在整个 postback 的过程中,开发人员都能够从用户地址信息关联的文本框中读取信息。你应该如何做?()

A. 重载(Override)基类的方法EnsureChildControls。增加子控件到base container。
B. 重载(Override)基类的方法CreateControlCollection。增加子控件到 ControlCollection 类。
C. 重载(Override)基类的方法CreateChildControls。增加子控件到base container。
D. 重载(Override)基类的方法DataBindChildren。增加子控件到 ControlCollection 类。

7.单项选择题你创建了一个名为 ContosoControls 的 Web 服务器控件。并且在 ContosoControls 控件中增加了一个名为 ContosoMailer 的 Web 自定义控件。现在,你需要分发这个 Web 服务器控件给你的团队成员。为此,你需要提供一个正确的过程,让你的团队成员增加这个 Web 服务器控件库到他们的 Microsoft Visual Studio .NET 工具栏中。下面那一个过程是你应该提供给团队成员的?()

A.在工具栏内,单击选择项;然后浏览并选择ContosoControls控件
B.在工具栏内,单击选择项;然后浏览并选择ContosoMailer控件
C.右击Web项目,然后单击添加引用,然后浏览并选择ContosoControls.dll文件
D.在工具栏内,单击选择项;然后浏览并选择ContosoControls.dll文件

最新试题

You create a server control that inherits from WebControl. You need to enable the server control to emit markup for a new kind of mobile device. You must not alter the code in the server controls.Which two actions should you perform?()

题型:多项选择题

You are developing a product search page named Search.aspx for Web application that will be integrated into Certkiller .com's existing e-Commerce Web site. The Search.aspx page allows customers search for products that match specific criteria. Once a product is located, you want an image of the product to be displayed. You want to use an Image control to display the image. You want to configure the Image control to display a description of the image if the image cannot be displayed in the customer's Web browser.What should you do?()

题型:单项选择题

Certkiller .com's e-Commerce Web application contains a page named Products.aspx that uses data source and data-bound server controls. Customers use the server controls to search for products. The Products.aspx page does not have an associated code-behind file. You need to convert the Products.aspx page to a user control so that its functionality can be reused on other pages.What should you do?()

题型:多项选择题

You create a Web site that stores users' active themes in user profile objects. You need to apply users' preferred themes when they log on to the Web site.What should you do? ()

题型:单项选择题

You create a Web site. You add an EditorZone control to the home page on the Web site. You need to enable users to customize the size and location of the Web Parts on their home pages.Which two controls should you add to the EditorZone control?()

题型:多项选择题

You create a server control that inherits from WebControl. You need to enable the server control to emit markup for a new kind of mobile device. You must not alter the code in the server controls.Which two actions should you perform?()

题型:多项选择题

You are creating a composite control for capturing user address information in a Web application. You define a number of properties that the user can set at design time. You need to group these properties in the Properties dialog box. In addition, you need to ensure that when users click on a particular property, they receive a short explanation of that property. The properties are shown in the exhibit.Which two actions should you perform?()

题型:多项选择题

You create a mobile Web application. You need to use a Command control to post user input from the UI elements back to the server.What are two possible ways to achieve this goal?()

题型:多项选择题

You create a Web site with membership and personalization enabled. You must use an existing CRM database for storing the membership information. You need to implement the Membership Provider.What should you do?()

题型:单项选择题

You recently developed a Web application that accesses an external Web service to retrieve current exchange rates for Certkiller .com's e-Commerce Web site. The Web service converts USD prices to the customer's local currency. You have stored the URL to the external Web service's endpoint in the section of the Web.config file. The Web application has been successfully deployed to a Certkiller .com Web server named Certkiller -SR14. A few months later the vendor of the Web service changes the port that is used to access the Web service. You need to update the section of the Web application's Web.config file from Certkiller -WS528. You need to ensure that your solution has a minimal impact on customers that may be connected to the e-Commerce Web site.What should you do?()

题型:单项选择题