GSSP-.NET · Question #433
(Topic 4) You work as a Windows Application Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create a Windows Forms application using .NET…
The correct answer is A. <customErrors mode="On" defaultRedirect="Error.htm">. You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2008 as its application development platform. You create an ASP.NET Web application using the .NET Framework 3.5. The application contains two HTML pages named PageNotFound.htm. You want to make…
Question
- (Topic 4)
You work as a Windows Application Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create a Windows Forms application using .NET Framework 3.5. The application needs a thread that accepts an integer parameter. You write the following code segment in the application:
Thread myThread = new Thread(new ParameterizedThreadStart(doWork)); myThread.Start(125); You are required to declare the signature of the doWork method. Which of the following method signatures will you use?
Options
- A<customErrors mode="On" defaultRedirect="Error.htm">
- B<customErrors mode="Off">
- C<customErrors mode="On">
- D<customErrors mode="Off" defaultRedirect="Error.htm">
How the community answered
(28 responses)- A71% (20)
- B4% (1)
- C7% (2)
- D18% (5)
Explanation
You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2008 as its application development platform. You create an ASP.NET Web application using the .NET Framework 3.5. The application contains two HTML pages named PageNotFound.htm. You want to make sure that the following requirements are met: l When any user requests a page that does not exist, the PageNotFound.htm page is l When any other error occurs, the Error.htm page is displayed. Which of the following code segments will you add to the Web.config file to accomplish this <error statusCode="404" redirect="PageNotFound.htm"/> <error statusCode="400" redirect="Error.htm"/> <error statusCode="404" redirect="PageNotFound.htm"/> <error statusCode="400" redirect="Error.htm"/> <error statusCode="404" redirect="PageNotFound.htm"/> <error statusCode="404" redirect="PageNotFound.htm"/>
Topics
Community Discussion
No community discussion yet for this question.