Which of the following actions will you perform to accomplish the task?

You work as a Web Application Developer for SunInfo Inc. The company uses Visual Studio 2008 as its application development platform. You create a Web application using .NET Framework 3.5. You want to redirect users to a default error page if an unhandled error occurs within your site.

Which of the following actions will you perform to accomplish the task?
A . Set the mode attribute of the customErrors element to Off and the defaultRedirect attribute to an error page within your site.
B . Set the statusCode attribute of the error element to 404 and the redirect attribute to a custom error page.
C . Set the redirect attribute of the error element to an error page within your site.
D . Set the mode attribute of the customErrors element to On and the defaultRedirect attribute to an error page within your site.

Answer: D

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments