Sams Teach Yourself .Net in 21 Days
- Table of Contents
- Copyright
- About the Author
- About the Technical Editor
- Acknowledgments
- We Want to Hear from You
- Introduction
- Week 1: At a Glance
- Day 1. Introduction to the Microsoft .NET Framework
- Day 2. Introduction to Visual Studio .NET
- Day 3. Writing Windows Forms Applications
- Day 4. Deploying Windows Forms Applications
- Day 5. Writing ASP.NET Applications
- Day 6. Deploying ASP.NET Applications
- Day 7. Exceptions, Debugging, and Tracing
- Week 1. In Review
- Week 2: At a Glance
- Day 8. Core Language Concepts in Visual Basic .NET and C#
- Day 9. Using Namespaces in .NET
- Day 10. Accessing Data with ADO.NET
- Day 11. Understanding Visual Database Tools
- Day 12. Accessing XML in .NET
- Day 13. XML Web Services in .NET
- Day 14. Components and .NET
- Week 2. In Review
- Week 3: At a Glance
- Day 15. Writing International Applications
- Day 16. Using Macros in Visual Studio .NET
- Day 17. Automating Visual Studio .NET
- Day 18. Using Crystal Reports
- Day 19. Understanding Microsoft Application Center Test
- Day 20. Using Visual SourceSafe
- Day 21. Object Role Modeling with Visio
- Week 3. In Review
Quiz
-
The ______________ object in ADO.NET handles the execution of SQL statements for the DataReader and DataAdapter classes.
Command
-
The DataReader is used for forward-only reading of data. To be able to reuse data from a database, manipulate the __________ class.
DataSet
-
True or False: The SqlDataAdapter and OleDataAdapter share the same functionality.
False. The answer is misleading, though. The two classes share about 98% of the same functionality, with DataType classes being the main difference.
-
True or False: You don't need to use a Connection object with the DataAdapter class because it handles all connection information for you.
False. You still must set connection parameters. The DataAdapter explicitly opens a connection for you. You don't have to use connection.open.
-
True or False: The DataBindings collection in .NET only supports DataSets and XML files for simple and complex binding to the Label control, the DataGrid control, and the TextBox control.
-
False. You can use the DataBindings collection with many controls, and the only complex binding mentioned in the question would be the DataGrid control.
In Web Forms, I can use the _____________ object and the ___________ object to bind controls to a data source.
DataSet, DataReader
Exercises | Next Section

Account Sign In
View your cart