Solved

MCP Exam question - 70-306   Easy Points

Posted on 2004-09-24
5
168 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
  • 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now