A.为Trace.Trace Finished事件增加跟踪内容事件处理程序,并且把跟踪信息记录到数据库中。
B.在Web.config文件中增加system.diagnostics配置节,然后在新的节增加一个listener。
C.使用System.Diagnostics.Trace对象连接到数据库,并且插入跟踪记录到数据库。
D.在Page_Load事件中,使用Trace.Write插入信息到数据库。
您可能感兴趣的试卷
你可能感兴趣的试题
你创建了一个 Web 站点。在站点中每个页面的顶部都包含如下代码<%@outputcache duration="60" varybyparam="none">你需要页面在顶部显示当前的用户名并且不关闭输出缓冲。你应该使用那个控件?()%@outputcache>
A.Access Data Source
B.Localize
C.Import Catalog Part
D.Substitution
A. 用aspnet_compiler.exe 写一个批处理文件。
B. 用InstallUtil.exe 写一个批处理文件。
C. 用Csc.exe 写一个批处理文件。
D. 用 aspnet_wp.exe 写一个批处理文件。
A. 创建一个从HtmlTextWriter 继承的类并且输出新的markup(标记)。
B. 创建一个从StreamWriter继承的类并且输出新的markup(标记)。
C. 在新设备的browser definition 文件的
D. 在新设备的browser definition 文件的< controlAdapters >元素中引用类。
A.给Web窗体增加能够输出XHTML的自定义控件。
B.给Web窗体增加能够输出WML的自定义控件。
C.给Web窗体增加mobile控件。
D.给Web窗体增加Web服务器控件。
A.设置Range Validator的Display属性值为Dynamic.
B.设置Range Validator的Display属性值为Static.
C.设置Required Field Validato的Display属性值为Dynamic.
D.设置Required Field Validato的Display属性值为Static.
A. 重载(Override)基类的方法EnsureChildControls。增加子控件到base container。
B. 重载(Override)基类的方法CreateControlCollection。增加子控件到 ControlCollection 类。
C. 重载(Override)基类的方法CreateChildControls。增加子控件到base container。
D. 重载(Override)基类的方法DataBindChildren。增加子控件到 ControlCollection 类。
A.在工具栏内,单击选择项;然后浏览并选择ContosoControls控件
B.在工具栏内,单击选择项;然后浏览并选择ContosoMailer控件
C.右击Web项目,然后单击添加引用,然后浏览并选择ContosoControls.dll文件
D.在工具栏内,单击选择项;然后浏览并选择ContosoControls.dll文件
A. 用System.Web.UI.TemplateControl对UI元素进行分组
B. 用System.Web.UI.HtmlControls.HtmlControl对UI元素进行分组
C. 用System.Web.UI.LiteralControl对UI元素进行分组
D. 用System.Web.UI.WebControls.Literal对UI元素进行分组
A.用复制网站工具
B.用发布网站工具
C.用XCOPY
D.用Web安装向导
A.使用发布Web站点工具。
B.使用复制站点工具。
C.用XCOPY命令行工具。
D.创建一个Web安装项目。
最新试题
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?()