Extending the ObjectDataSource
Bruce Johnson, ObjectSharp Consulting
www.objectsharp.com
One of the more interesting additions to ASP.NET 2.0 is the ObjectDataSource control. Not simply because
it allows object of almost any type to be used as the source for binding to the controls on a form. But
also because it can be easily extended to fit into a more complete framework. A framework where validation
defined on the class can be integrated into the web page. Where the business rules implemented in the class
are automatically invoked when the web form is submitted. And where any errors raised through this process
can be propagated back to the web page.
And that is the the purpose of this session. To demonstrate how to extend ObjectDataSource to incorporate both
field and class-level validation. To show how error messages can be integrated with the typical controls. To
provide a reference application that you can use to implemement this functionality in your own applications.