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.
正确答案:A,B
答案解析:有
微信扫一扫手机做题