Workshop

for RuBoard

These quiz questions are designed to test your knowledge of the material covered in this chapter. The answers to the quiz questions can be found in Appendix A, "Answers to Quizzes."

Quiz

1:

What is the purpose of adding additional layers to your application?

2:

Name the option you can use when calling the ExecuteReader() method of the Command object to make sure that the DataReader closes its connection to the database when it is done.

Exercise

Upgrade the orders.aspx and orderdetails.aspx examples from Hour 11 to use a middle tier to access data. Remember that both of these examples use a SqlDataReader to retrieve information from the database, so your middle-tier code will be very similar to the first example (product list) in this chapter.

You should create a new class in the ADO24HRS namespace called OrdersDB in order to implement the new screens. Keep in mind that a namespace can span several files (that is, you can copy the ProductsDB.vb file created in this chapter to a file called OrdersDB.vb, replace the product methods with ones for the order screens, and compile it in the same way).

for RuBoard


Sams Teach Yourself ADO. NET in 24 Hours
Sams Teach Yourself ADO.NET in 24 Hours
ISBN: 0672323834
EAN: 2147483647
Year: 2002
Pages: 237

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net