Solved

MCP Exam question - 70-306   Easy Points

Posted on 2004-09-24
5
174 Views
Last Modified: 2010-04-23
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
Comment
Question by:thenrich
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 25

Accepted Solution

by:
RonaldBiemans earned 500 total points
ID: 12142245
It should be C. even though that is a lame way to do it. Calling the bindingmangers endcurrentedit is the better way
0
 
LVL 5

Author Comment

by:thenrich
ID: 12142308
'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
 
LVL 5

Author Comment

by:thenrich
ID: 12160797
thx for the answer - took the exam last Friday. 38 ?'s, 15min, 975 out of 1000. I'm happy with that.
0
 
LVL 25

Expert Comment

by:RonaldBiemans
ID: 12160810
Congratulations, thenrich.
0
 
LVL 5

Author Comment

by:thenrich
ID: 12160833
thx I'll more ?'s for exam 70-305.
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question