Monday, December 05, 2005
ASP.NET 2.0 introduces a powerful new declarative data-source model. Among other things, it makes doing data access much easier in a stateless-web world -- and eliminates many of the hurdles developers have to jump through today to handle repeated data UI operations on the server. Included in the box is the new ObjectDataSource control, which you can use to databind to any .NET class -- no special databinding interfaces are required, and it enables pretty easy three-tier databinding scenarios.
Nikhil wrote a great 5-part article series on MSDN recently that walksthrough how to build you own reusable data-source controls (for example: if you use a specific O/R mapping layer, you might want to build a datasource control to directly integrate with it).
Here are links to the five articles to check-out:
- Data Source Controls, part 2 1: The Basics
- Data Source Controls, Part 2: Parameters
- Data Source Controls, Part 3: Async Data Access
- Data Source Controls, Part 4: Caching
- Data Source Controls, Part 5: Design-time functionality
Hope this helps,