70-528 無料問題集「Microsoft TS: Microsoft .NET Framework 2.0 - Web-based Client Development」
You are developing a Microsoft ASP.NET application that will include Web Forms. Some of the Web Forms will use a master page.
You need to ensure that when an ASP.NET exception is raised, the application logs error messages to a central error log.
In which event handler should you place the code to log the error messages?
You need to ensure that when an ASP.NET exception is raised, the application logs error messages to a central error log.
In which event handler should you place the code to log the error messages?
正解:D
解答を投票する
You are developing a Microsoft ASP.NET Web application. The application uses methods of the Trace
class.
You add a TextWriterTraceListener class to the Listeners collection that writes trace messages to a log file.
You need to ensure that the following requirements are met:
The trace messages are written to the TextWriterTraceListener class.
The trace output is accessible only by using the Trace Viewer or by viewing the log file.
Which trace element should you add to the configuration file of the application?
class.
You add a TextWriterTraceListener class to the Listeners collection that writes trace messages to a log file.
You need to ensure that the following requirements are met:
The trace messages are written to the TextWriterTraceListener class.
The trace output is accessible only by using the Trace Viewer or by viewing the log file.
Which trace element should you add to the configuration file of the application?
正解:A
解答を投票する
You are creating a Microsoft ASP.NET Web site.
The Web site allows users to select a theme that is applied to all pages they visit. The selected theme is stored in a profile property named Theme.
You create a Web Form that contains the following code segment. (Line numbers are included for reference only.)
01 public partial class _Default : System.Web.UI.Page {
02 ...
03 }
You need to ensure that the selected theme is applied to the page.
Which code segment should you use?
The Web site allows users to select a theme that is applied to all pages they visit. The selected theme is stored in a profile property named Theme.
You create a Web Form that contains the following code segment. (Line numbers are included for reference only.)
01 public partial class _Default : System.Web.UI.Page {
02 ...
03 }
You need to ensure that the selected theme is applied to the page.
Which code segment should you use?
正解:A
解答を投票する
You are creating a Microsoft ASP.NET Web application. The application connects to a remote Microsoft
SQL Server database.
You need to ensure that the Web application can be deployed to a remote Web server.
You also need to ensure that the Web application does not contain the source code and markup in user
controls during deployment.
What should you do?
SQL Server database.
You need to ensure that the Web application can be deployed to a remote Web server.
You also need to ensure that the Web application does not contain the source code and markup in user
controls during deployment.
What should you do?
正解:D
解答を投票する