2012年微软认证考试备考,为了能让更多的考生考试通过,微软认证考试网特搜集了有关复习资料,帮助大家复习。以下是关
于2012年微软认证考试考前冲刺试题。
QUESTION 19
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
The application contains two Web pages named OrderDetails.aspx and OrderError.htm.
If the application throws unhandled errors in the OrderDetails.aspx Web page, a stack trace is displayed to remote users.
You need to ensure that the OrderError.htm Web page is displayed for unhandled errors only in the OrderDetails.aspx Web page.
What should you do?
A.Set the Page attribute for the OrderDetails.aspx Web page in the following manner.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OrderDetails.aspx.cs" Inherits="OrderDetails" %>
Add the following section to the Web.config file.
B.Set the Page attribute for the OrderDetails.aspx Web page in the following manner.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OrderDetails.aspx.cs" Inherits="OrderDetails" Debug="true" %>
Add the following section to the Web.config file.
C.Set the Page attribute for the OrderDetails.aspx Web page in the following manner.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OrderDetails.aspx.cs" Inherits="OrderDetails" ErrorPage="~/OrderError.htm" Debug="false" %>
Add the following section to the Web.config file.
D.Set the Page attribute for the OrderDetails.aspx Web page in the following manner.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OrderDetails.aspx.cs" Inherits="OrderDetails" Debug="true" ErrorPage="~/OrderError.htm" %>
Add the following section to the Web.config file.
Answer: C