thenrich
asked on
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 (CustomerD ataSet)
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...
*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
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...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thx for the answer - took the exam last Friday. 38 ?'s, 15min, 975 out of 1000. I'm happy with that.
Congratulations, thenrich.
ASKER
thx I'll more ?'s for exam 70-305.
ASKER
Like I've stated before Ronald, 90% is meaningless book work. Thx for the quick response...