4. Data Binding to Business Objects
In the previous chapter, you saw how the
SqlDataSource control provides a declarative way to access databases, allowing easy two-way data binding for controls. While this works well, and is acceptable in certain sites, many people wish to move all data access out of the ASP.NET pages. This is a fairly standard arrangement, as it leaves the ASP.NET pages containing just the user interface—those bits that the user sees. All data access code is moved into a set of classes, which makes development and maintenance easier, especially in large organizations with teams of developers.
In this chapter we’re going to look at what features ASP.NET 2.0 provides to enable this scenario—the use of data and business layers ...