Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

MCP Exam question - 70-306   Easy Points

Posted on 2004-09-24
5
Medium Priority
?
186 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

721 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