MCP Exam question - 70-306 Easy Points

You use VS .NET to develop a windows application. Your application contains a form named CustomerForm, which includes the following design-time controls:

   *SQLConnection object named TestKingConnection
   *SQLDataAdaptor object named TestKingDataAdaptor
   *DataSet object named CustomDataSet
   * 5 TextBox controls to hold values exposed by CustomerDataSet
   * Button control named saveButton

At design time you set the databindings properties of each TextBox control to the appropriate column in the DataTable object of CustomerDataSet.
When the application runs, users must be able to edit the information displayed in the text boxes. All user changes must be saved to the appropriate database when saveButton is executed. The event handler for saveButton includes the following code segment:

   TestKingDataAdaptor.Update(CustomerDataSet)

You test your application. However, saveButton fails to save any values edited in text boxes.
You need to correct the problem.
What should your application do?

A. Call the InsertCommand of TestKingDataAdaptor.
B. Call the update method of TestKingDataAdaptor and pass in TestKingConnection.
C. Before calling the update method, ensure that the row position change occurs in CustomerDataSet.




The only reason I ask is that the study guide has the question twice with 2 differant answers.

thx Tom...


LVL 5
thenrichAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
RonaldBiemansConnect With a Mentor Commented:
It should be C. even though that is a lame way to do it. Calling the bindingmangers endcurrentedit is the better way
0
 
thenrichAuthor Commented:
'Calling the bindingmangers endcurrentedit is the better way'

Like I've stated before Ronald, 90% is meaningless book work. Thx for the quick response...
0
 
thenrichAuthor Commented:
thx for the answer - took the exam last Friday. 38 ?'s, 15min, 975 out of 1000. I'm happy with that.
0
 
RonaldBiemansCommented:
Congratulations, thenrich.
0
 
thenrichAuthor Commented:
thx I'll more ?'s for exam 70-305.
0
All Courses

From novice to tech pro — start learning today.