Write the code needed to include a Try...Catch statement that will handle an error that might occur while saving in an application. Use the following statements in the Try block, along with a message for the user of the Student Data Application that notifies the user the changes have been saved. Provide an error message if an exception occurs.Me.Validate()Me.TblStudentBindingSource.EndEdit()Me.TableAdapterManager.UpdateAll(Me.StudentsDataSet)

What will be an ideal response?


Try
Me.Validate()
Me.TblStudentBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.StudentsDataSet)
MessageBox.Show("Changes saved", "Student Data
Application", MessageBoxButtons.OK,
MessageBoxIcon.Information)
Catch ex As Exception
MessageBox.Show(ex.Message, "Student Data
Application", MessageBoxButtons.OK,
MessageBoxIcon.Information)
End Try

Computer Science & Information Technology

You might also like to view...

Web services use a special language called ____ to describe the basic format of requests to their systems.

A. HTML B. SOAP C. WSDL D. XML

Computer Science & Information Technology

Satellites that orbit at the same speed of the earth’s rotation, and allow for a dish to be aimed at a fixed location, are known as

a. LEO satellites b. MEO satellites c. GEO satellites d. none of the above

Computer Science & Information Technology

In the figure above, the number 3 refers to the ____________________ bar.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

What type of review does not involve the presentation of the review to a team or individual for examination prior to the actual review?

A. Informal review B. Partial review C. Open review D. Closed review

Computer Science & Information Technology