You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
The application contains two HTML pages named ErrorPage.htm and PageNotFound.htm.
You need to ensure that the following requirements are met:
When the user requests a page that does not exist, the PageNotFound.htm page is displayed.
When any other error occurs, the ErrorPage.htm page is displayed.
Which section should you add to the Web.config file?
A.
<customErrors mode=”Off” defaultRedirect=”ErrorPage.htm”>
<error statusCode=”404″ redirect=”PageNotFound.htm”/>
</customErrors>
B.
<customErrors mode=”On” defaultRedirect=”ErrorPage.htm”>
<error statusCode=”404″ redirect=”PageNotFound.htm”/>
</customErrors>
C.
<customErrors mode=”Off”>
<error statusCode=”400″ redirect=”ErrorPage.htm”/>
<error statusCode=”404″ redirect=”PageNotFound.htm”/>
</customErrors>
D.
<customErrors mode=”On”>
<error statusCode=”400″ redirect=”ErrorPage.htm”/>
<error statusCode=”404″ redirect=”PageNotFound.htm”/>
</customErrors>