Using ASP.NET 2.0's ObjectDataSource
By: Joel Martinez on Thursday, January 26, 2006
Reader Level: 
ASP.NET 2.0 has introduced a slew of new functionality. One of the most compelling features is the
new bindable DataSources. Using a declarative programming model that has in the past made ColdFusion developers
very popular, the new
DataSource controls allow you to expose data from various sources including Databases, XML, and the focus of this
article -- Custom objects.
The ObjectDataSource allows you to point at a custom object, which subsequently lets other bindable controls
such as DropDownList and GridView controls automatically bind and manipulate your objects just by setting
a few properties on a tag. The range of options available to you makes this declarative programming model
quite an attractive option.
This article will show you how to create a custom class, and subsequently link that to GridView and FormView
controls. These controls will give you full create, read, update, and delete functionality, all with just no code written.
Purchase this item
You can purchase this piece of content separately for
$3.00
Want more?
Community MX members get unlimited access to daily articles,
tutorials, extensions and support. The most comprehensive
resource for Macromedia designers and developers today.
Take a tour of what we offer, and discover the benefits
of subscribing.
Already a member?
Simply log in using the form in the top right area of the site.



