handler if the objects UpdateStatus property has a value

Handler if the objects updatestatus property has a

This preview shows page 50 - 52 out of 144 pages.

handler, if the SqlRowUpdatedEventArgs object's UpdateStatus property has a value of UpdateStatus.ErrorsOccurred, then set the SqlDataAdapter object's ContinueUpdateOnError property to True. D. Create an event handler for the SqlDataAdapter object's RowUpdated event. In the event handler, if the SqlRowUpdatedEventArgs object's Errors property returns a non-null value, then set the SqlDataAdapter object's ContinueUpdateOnError property to True. Answer: A Explanation: The SqlDataAdapter.ContinueUpdateOnError property gets or sets a value that specifies whether to generate an exception, or the row in error when an error is encountered during a row update. If ContinueUpdateOnError is set to true, no exception is thrown when an error occurs during the update of a row. The update of the row is skipped and the error information is placed in the RowError property of the row in error. Reference: .NET Framework Class Library, SqlDataAdapter MembersIncorrect Answers B: We should set the ContinueUpdateOnError property to true beforehand, not the Catch code. C, D: An event handler is not needed. The required functionality is inherent in the SqlDataAdapter class. Question: 65. You are creating an ASP.NET application for an insurance company. Customers will use this application to manage their own insurance policies. For example, a customer can use the application to renew policies.
Background image
Exam Name: Developing and Implementing Web Applications with Microsoft Visual Basic.NET Exam Type: Microsoft Exam Code: 70-305 Total Questions: 212 Page 51 of 144 An existing COM component named PolicyEXLibrary.dll contains the logic for calculating the renewal premium. PolicyEXLibrary.dll is written in Visual Basic 6.0. The class that performs the calculations is named cPolicyActions. The CalculateRenewal function of cPolicyActions accepts a policy identification number and returns a premium as a Double. You need to use PolicyEXLibrary.dll in your ASP.NET application. You also need to enable the application to use the cPolicyActions class. What should you do?1. Open a new or existing Microsoft Visual C# .NET project in Visual Studio .NET.
Background image
Image of page 52

You've reached the end of your free preview.

Want to read all 144 pages?

  • Spring '16
  • .NET Framework, Microsoft SQL Server, Microsoft Visual Studio

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes