Murach's ASP.NET 2.0 Upgrader's Guide: VB Edition
How to use object data sources

This chapter shows you how to use object data sources to implement 3-layer applications in which the data access code is kept in data access classes. This lets you separate the presentation code from the data access code, but still lets you use the data binding features of ASP.NET 2.0.

Chapter 7 How to use object data sources
An introduction to object data sources 226
How 3-layer applications work in ASP.NET 2.0 226
How to use the ObjectDataSource control 228
How to configure an ObjectDataSource control 230
A Product List application 232
The aspx file 234
The ProductDB class 236
How to create a data access class 238
How to design a data access class 238
How to create a select method 240
How to create update, delete, and insert methods 242
How to use attributes to mark a data access class 244
A Catagory Maintenance application 246
The design of the Category Maintenance application 246
The aspx file 246
The code-behind file 250
The CategoryDB class 250
How to use aggregate data types and detect concurrency errors 254
How to create an aggregate data type 254
How to use an aggregate data type 256
How to check for concurrency errors 258
How to use the generics feature to return a typed list 260
A Category Maintenance application that uses an aggregate class 262
The code-behind file 262
The CategoryDB class 262




Murach's ASP.NET 2.0 Upgrader's Guide: VB Edition

Learn more about this book

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.