Murach's ADO.NET 2.0 with VB 2005
How to use object data source controls

This chapter shows you how to use the object data source control as an alternative to the SQL data source control in ASP.NET 2.0 applications. This allows you to create true 3-layer applications in which the data access code is separated from the presentation code, yet still use the data binding features of ASP.NET 2.0.

Chapter 14 How to use object data source controls
An introduction to object data sources 474
How three-layer applications work in ASP.NET 2.0 474
How to use the object data source control 476
How to configure an object data source control 478
How to work with bound controls 478
A Vendor Invoices application 480
The design of the Vendor Invoices application 480
The aspx file 480
The VendorDB class 484
The InvoiceDB class 486
The PayablesDB class 486
How to create a data access class 488
How to design a data access class 488
How to create a select method 490
How to create update, delete, and insert methods 492
How to use attributes to mark a data access class 494
A Terms Maintenance application 496
The design of the Terms Maintenance application 496
The aspx file 498
The code-behind file 502
The TermsDB class 504
How to use business objects with object data sources 508
How to create methods that use business objects 508
The aspx file for a Terms Maintenance application that uses business objects 510
The Terms business class 512
A TermsDB class that uses business objects 512
How to use paging with object data sources 516
How to create an object data source that provides for paging 516
How to create a data access class that provides for paging 518




Murach's ADO.NET 2.0 with VB 2005

Learn more about this book

View the table of contents

Add this book to your cart



Our Ironclad Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a full refund...no questions asked.