Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 192
  • Last Modified:

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...


0
thenrich
Asked:
thenrich
  • 3
  • 2
1 Solution
 
RonaldBiemansCommented:
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

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now